plugin

package
v0.20.21 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2026 License: MIT Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(ctx context.Context, cfg Config) (err error)

Types

type ArgoApp

type ArgoApp struct {
	Name      string
	Namespace string
}

type CmpParam

type CmpParam struct {
	Name   string          `json:"name"`
	String string          `json:"string"`
	Array  []string        `json:"array"`
	Map    json.RawMessage `json:"map"`
}

structure of individual CMP parameters

type Config

type Config struct {
	Application ArgoApp
	Flight      Parameters
	Namespace   string
	Env         map[string]string
}

func ConfigFromEnv

func ConfigFromEnv() (cfg Config)

type Parameters

type Parameters struct {
	Build            bool
	Wasm             string
	Input            string
	Refs             map[string]Ref
	Args             []string
	ResourceMatchers []string
	ClusterAccess    bool
	MaxMemoryMib     uint32
	Timeout          time.Duration
	Checksum         string
	Insecure         bool
}

func (*Parameters) UnmarshalText

func (parameters *Parameters) UnmarshalText(data []byte) (err error)

type Ref

type Ref struct {
	Secret    string `json:"secret"`
	Namespace string `json:"namespace"`
	Key       string `json:"key"`
}

Jump to

Keyboard shortcuts

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