Documentation
¶
Index ¶
- Constants
- Variables
- func AddComponentVersionToRepository(component Component, scheme string, ...) error
- func CreateSecret(name string, data map[string][]byte, stringData map[string]string, ...) features.Func
- func DeleteSecret(name string) features.Func
- func ForwardPortForAppName(name string, port int, stopChannel chan struct{}) env.Func
- func InstallFlux(version string) env.Func
- func PortForward(port int, stopChannel chan struct{}, podName string, ctx context.Context, ...) (context.Context, error)
- 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 ComponentModification
- 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, scheme string, componentModifications ...ComponentModification) error
AddComponentVersionToRepository takes a component description and optional resources. Then pushes that component into the locally forwarded registry.
func CreateSecret ¶ added in v0.3.2
func CreateSecret(name string, data map[string][]byte, stringData map[string]string, namespace string) features.Func
Creates a secret
func DeleteSecret ¶ added in v0.3.2
DeleteSecret Deletes a secret
func ForwardPortForAppName ¶
ForwardPortForAppName port forwards at test setup phase
func InstallFlux ¶
InstallFlux creates a flux installation with a given version.
func PortForward ¶ added in v0.3.2
func PortForward(port int, stopChannel chan struct{}, podName string, ctx context.Context, config *envconf.Config) (context.Context, error)
PortForward forwards the given port for the given pod name.
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 ComponentModification ¶ added in v0.3.0
type ComponentModification func(compvers ocm.ComponentVersionAccess) error
ComponentModification defines functions that can modify the generated component version.
func BlobResource ¶ added in v0.3.0
func BlobResource(resource Resource) ComponentModification
BlobResource creates a blob type resource for local access.
func ComponentVersionRef ¶ added in v0.3.0
func ComponentVersionRef(ref ComponentRef) ComponentModification
ComponentVersionRef creates a component version reference for the given component version.
func ImageRefResource ¶ added in v0.3.0
func ImageRefResource(ref string, resource Resource) ComponentModification
ImageRefResource creates an image reference type resource.
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.