yoke

package
v0.7.3 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2025 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EvalFlight

func EvalFlight(ctx context.Context, release string, flight FlightParams) ([]byte, []byte, error)

func ExportToFS

func ExportToFS(dir, release string, resources []*unstructured.Unstructured) error

func ExportToStdout

func ExportToStdout(ctx context.Context, resources []*unstructured.Unstructured) error

func LoadWasm

func LoadWasm(ctx context.Context, path string) (wasm []byte, err error)

Types

type Commander

type Commander struct {
	// contains filtered or unexported fields
}

func FromK8Client

func FromK8Client(client *k8s.Client) *Commander

func FromKubeConfig

func FromKubeConfig(path string) (*Commander, error)

func (Commander) Descent

func (commander Commander) Descent(ctx context.Context, params DescentParams) error

func (Commander) Mayday

func (client Commander) Mayday(ctx context.Context, name, ns string) error

func (Commander) Takeoff

func (commander Commander) Takeoff(ctx context.Context, params TakeoffParams) error

func (Commander) Turbulence

func (commander Commander) Turbulence(ctx context.Context, params TurbulenceParams) error

type DescentParams

type DescentParams struct {
	Release    string
	RevisionID int
	Namespace  string
	Wait       time.Duration
	Poll       time.Duration
}

type FlightDependencies

type FlightDependencies struct {
	Namespaces []*unstructured.Unstructured
	CRDs       []*unstructured.Unstructured
}

func SplitResources

func SplitResources(resources []*unstructured.Unstructured) (deps FlightDependencies, core []*unstructured.Unstructured)

type FlightParams

type FlightParams struct {
	Path                string
	Module              *wasi.Module
	Input               io.Reader
	Args                []string
	Namespace           string
	CompilationCacheDir string
}

type TakeoffParams

type TakeoffParams struct {
	SendToStdout     bool
	SkipDryRun       bool
	DryRun           bool
	ForceConflicts   bool
	MultiNamespaces  bool
	Release          string
	Out              string
	Flight           FlightParams
	DiffOnly         bool
	Context          int
	Color            bool
	CreateNamespaces bool
	CreateCRDs       bool
	Wait             time.Duration
	Poll             time.Duration
	OwnerReferences  []metav1.OwnerReference
}

type TurbulenceParams

type TurbulenceParams struct {
	Namespace     string
	Release       string
	Context       int
	ConflictsOnly bool
	Fix           bool
	Color         bool
	Silent        bool
}

Jump to

Keyboard shortcuts

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