Documentation
¶
Index ¶
- Constants
- func Decorate(ctx context.Context, src, dest string, runxConfig, runxDoc []byte) error
- func Image(runxConfig, runxDoc []byte) (v1.Image, *v1.Descriptor, error)
- type Action
- type ActionType
- type Config
- type ConfigAction
- type ConfigImage
- type Files
- type LocalConfig
- type Opt
- type RunKit
- type Runnable
- type TemplateData
Constants ¶
View Source
const ( RunxAnnotation = "vnd.docker.reference.type" RunxManifestType = "runx-manifest" RunxConfigType = "application/vnd.runx.config+yaml" RunxDocType = "application/vnd.runx.readme+txt" )
View Source
const (
DefaultLocalConfigFile = ".docker/runx.yaml"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Action ¶ added in v0.0.3
type Action struct { ID string `yaml:"id" json:"id"` Desc string `yaml:"desc,omitempty" json:"desc,omitempty"` Type ActionType `yaml:"type" json:"type"` Command string `yaml:"cmd" json:"cmd,omitempty"` Env []string `yaml:"env,omitempty" json:"env,omitempty"` Options []Opt `yaml:"opts,omitempty" json:"opts,omitempty"` Shell map[string]string `yaml:"shell,omitempty" json:"shell,omitempty"` Dockerfile string `yaml:"dockerfile,omitempty" json:"dockerfile,omitempty"` DockerfileContent string // contains filtered or unexported fields }
func (*Action) GetRunnable ¶ added in v0.0.3
type ActionType ¶ added in v0.0.3
type ActionType string
const ( ActionTypeRun ActionType = "run" ActionTypeBuild ActionType = "build" )
type ConfigAction ¶ added in v0.0.7
type ConfigImage ¶ added in v0.0.7
type ConfigImage struct { Default string `yaml:"default,omitempty" json:"default,omitempty"` AllActions ConfigAction `yaml:"all-actions,omitempty" json:"all-actions,omitempty"` Actions map[string]ConfigAction `yaml:"actions,omitempty" json:"actions,omitempty"` }
type LocalConfig ¶ added in v0.0.6
type LocalConfig struct { Ref string `yaml:"ref,omitempty" json:"ref,omitempty"` Images map[string]ConfigImage `yaml:"images,omitempty" json:"images,omitempty"` }
func GetLocalConfig ¶ added in v0.0.6
func GetLocalConfig() LocalConfig
type Opt ¶ added in v0.0.5
type Opt struct { Name string `yaml:"name" json:"name"` Description string `yaml:"desc" json:"desc,omitempty"` NoPrompt bool `yaml:"no-prompt,omitempty" json:"no-prompt,omitempty"` Prompt string `yaml:"prompt,omitempty" json:"prompt,omitempty"` Required bool `yaml:"required,omitempty" json:"required,omitempty"` Values []string `yaml:"values,omitempty" json:"values,omitempty"` }
type RunKit ¶ added in v0.0.3
Click to show internal directories.
Click to hide internal directories.