Versions in this module Expand all Collapse all v0 v0.1.1 Feb 13, 2023 Changes in this version + const DeployLifecycleRequestEvent + const GetStateHook + const GetStateHookRequestEvent + const GetStateHookResponseEvent + const ListHook + const ListHookResponseEvent + const PostDeployLifecycleRequestEvent + const PreDeployLifecycleRequestEvent + const ValidateHook + const ValidateHookRequestEvent + const ValidateHookResponseEvent + func LoadEvent(eventS string) (*cloudevents.Event, error) + func WriteEvent(event *cloudevents.Event, out io.Writer) error + type EventData struct + Variables []EventDataVarInfo + func LoadEventData(event *cloudevents.Event) (*EventData, error) + type EventDataVarInfo struct + Default string + Description string + Name string + Value string + type Hook string + type ModuleEventType string v0.1.0 Feb 13, 2023 Changes in this version + var DefaultOrder = []State + func DoneHandler(ctx *RunContext, notifier Notifier) error + func Iif(value string, orValue string) string + func NoopHandler(ctx *RunContext, notifier Notifier) error + func NoopHookCmd(ctx *RunContext) error + type ApiVersion struct + Namespace string + Version string + func ParseApiVersion(val string) (*ApiVersion, error) + func (a ApiVersion) String() string + type AtkContextKey string + const BaseDirectory + const LoggerContextKey + const StdErrContextKey + const StdOutContextKey + type CliModuleRunner struct + func (r *CliModuleRunner) Run(ctx *RunContext) error + func (r *CliModuleRunner) RunImage(ctx *RunContext, info ImageInfo) error + type CliParts struct + Cmd string + Commands []string + DefaultVolumeOpt string + Envvars []EnvVarInfo + Flags []string + Image string + Path string + Ports map[string]string + UidMaps []string + VolumeMaps []string + Workdir string + type CmdItr interface + Next func() (StateCmd, bool) + type DeployableModule struct + func NewDeployableModule(runCtx *RunContext, module *ModuleInfo) *DeployableModule + func (m *DeployableModule) AddCmd(status State, handler StateCmd) error + func (m *DeployableModule) GetCmdFor(status State) StateCmd + func (m *DeployableModule) GetHook(name string) HookCmd + func (m *DeployableModule) IsErrored() bool + func (m *DeployableModule) Itr() (NextFunc, bool) + func (m *DeployableModule) Notify(state State) error + func (m *DeployableModule) NotifyErr(state State, err error) + func (m *DeployableModule) State() State + type EnvVarInfo struct + Name string + Value string + func (e *EnvVarInfo) String() string + type HookCmd func(ctx *RunContext) error + type HookInfo struct + GetState ImageInfo + List ImageInfo + Validate ImageInfo + type ImageInfo struct + Args []string + Command []string + EnvVars []EnvVarInfo + Image string + Script string + Volumes []VolumeInfo + type LifecycleInfo struct + Deploy ImageInfo + PostDeploy ImageInfo + PreDeploy ImageInfo + type ManifestFileLoader struct + func NewAtkManifestFileLoader() *ManifestFileLoader + func (l *ManifestFileLoader) Load(uri string) (*ModuleInfo, error) + type MetadataInfo struct + Labels map[string]string + Name string + Namespace string + type ModuleInfo struct + ApiVersion string + Kind string + Metadata MetadataInfo + Specifications SpecInfo + func (m *ModuleInfo) IsSupported() bool + func (m *ModuleInfo) IsSupportedKind() bool + func (m *ModuleInfo) IsSupportedVersion() bool + type ModuleLoader interface + Load func(uri string) (ModuleInfo, error) + type NextFunc func() (StateCmd, bool) + type Notifier interface + Notify func(State) error + NotifyErr func(State, error) + State func() State + type PodmanCliCommandBuilder struct + func NewPodmanCliCommandBuilder(cli *CliParts) *PodmanCliCommandBuilder + func (b *PodmanCliCommandBuilder) Build() (string, error) + func (b *PodmanCliCommandBuilder) BuildFrom(info ImageInfo) (string, error) + func (b *PodmanCliCommandBuilder) WithEnvvar(name string, value string) *PodmanCliCommandBuilder + func (b *PodmanCliCommandBuilder) WithImage(imageName string) *PodmanCliCommandBuilder + func (b *PodmanCliCommandBuilder) WithPath(path string) *PodmanCliCommandBuilder + func (b *PodmanCliCommandBuilder) WithPort(localport string, containerport string) *PodmanCliCommandBuilder + func (b *PodmanCliCommandBuilder) WithUserMap(localUser int, containerUser int, number int) *PodmanCliCommandBuilder + func (b *PodmanCliCommandBuilder) WithVolume(localdir string, containerdir string) *PodmanCliCommandBuilder + func (b *PodmanCliCommandBuilder) WithVolumeOpt(localdir string, containerdir string, option string) *PodmanCliCommandBuilder + func (b *PodmanCliCommandBuilder) WithWorkspace(localdir string) *PodmanCliCommandBuilder + type RunContext struct + Context context.Context + Err io.Writer + Errors []error + In io.Reader + LastErrCode int + Log logger.Logger + Out io.Writer + func (c *RunContext) AddError(err error) + func (c *RunContext) IsErrored() bool + func (c *RunContext) Reset() + func (c *RunContext) SetLastErrCode(errCode int) + type SpecInfo struct + Hooks HookInfo + Lifecycle LifecycleInfo + type State string + const Configured + const Deployed + const Deploying + const Done + const Errored + const Initializing + const Invalid + const None + const PostDeployed + const PostDeploying + const PreDeployed + const PreDeploying + const Validated + type StateCmd func(ctx *RunContext, notifier Notifier) error + type StateCmder interface + AddCmd func(State, StateCmd) error + GetCmdFor func(State) StateCmd + type VolumeInfo struct + MountPath string + Name string