shared

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 25, 2023 License: Apache-2.0 Imports: 37 Imported by: 1

Documentation

Index

Constants

View Source
const (
	SignAlgo = rsa.Algorithm
)

Variables

View Source
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

func ForwardPortForAppName(name string, port int, stopChannel chan struct{}) env.Func

ForwardPortForAppName forwards the given port for the given app name.

func InstallFlux

func InstallFlux(version string) env.Func

InstallFlux creates a flux installation with a given version.

func RemoveGitServer

func RemoveGitServer(namespace string) env.Func

RemoveGitServer removes the previously installed Gitea server.

func RunTiltForControllers

func RunTiltForControllers(controllers ...string) env.Func

RunTiltForControllers executes tilt for a list of controllers.

func ShutdownPortForward

func ShutdownPortForward(stopChannel chan struct{}) env.Func

ShutdownPortForward sends a signal to the stop channel.

func StartGitServer

func StartGitServer(namespace string) env.Func

StartGitServer installs a Gitea Git server into the cluster using the deployment configuration files provided under ./gitea folder.

Types

type Component

type Component struct {
	Name    string
	Version string
	Sign    *Sign
}

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 ComponentRef struct {
	Name          string
	Version       string
	ComponentName string
}

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.

type Resource

type Resource struct {
	Name    string
	Version string
	Data    string
	Type    string
}

type Sign

type Sign struct {
	Name string
	Key  []byte
}

Sign defines the two needed values to perform a component signing.

Directories

Path Synopsis
steps

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL