Documentation
¶
Index ¶
- Constants
- Variables
- func AddComponentVersionToRepository(component Component, repository string, opts ...CreateOptions) error
- func ForwardPortForAppName(name string, port int, stopChannel chan struct{}) env.Func
- func InstallFlux(version string) env.Func
- func RemoveGitServer(namespace string) env.Func
- func RunTiltForControllers(controllers ...string) env.Func
- func ShutdownPortForward(stopChannel chan struct{}) env.Func
- func StartGitServer(namespace string) env.Func
- type Component
- type ComponentRef
- type CreateOptions
- type Resource
- type Sign
Constants ¶
const (
SignAlgo = rsa.Algorithm
)
Variables ¶
var ( // TestUserToken is the token generated for API access on the created test user. TestUserToken = "91efc1d52e9d6069729f373c2cad057da974f11e" //nolint:gosec // this is a test key BaseURL = "http://127.0.0.1:3000" Owner = "e2e-tester" )
internal values.
Functions ¶
func AddComponentVersionToRepository ¶
func AddComponentVersionToRepository(component Component, repository string, opts ...CreateOptions) error
AddComponentVersionToRepository takes a component description and optional resources. Then pushes that component into the locally forwarded registry.
func ForwardPortForAppName ¶
ForwardPortForAppName forwards the given port for the given app name.
func InstallFlux ¶
InstallFlux creates a flux installation with a given version.
func RemoveGitServer ¶
RemoveGitServer removes the previously installed Gitea server.
func RunTiltForControllers ¶
RunTiltForControllers executes tilt for a list of controllers.
func ShutdownPortForward ¶
ShutdownPortForward sends a signal to the stop channel.
func StartGitServer ¶
StartGitServer installs a Gitea Git server into the cluster using the deployment configuration files provided under ./gitea folder.
Types ¶
type Component ¶
Component presents a simple layout for a component. If `Sign` is not empty, it's used to sign the component. It should be the byte representation of a private key.
type ComponentRef ¶ added in v0.2.0
type CreateOptions ¶ added in v0.2.0
type CreateOptions struct {
Resource *Resource
ComponentRef *ComponentRef
}
CreateOptions presents a simple layout for a resource that AddComponentVersionToRepository will use.