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 Cache
- type CacheEntry
- type Config
- type ConfigAction
- type ConfigImage
- type Files
- type LocalCache
- func (c *LocalCache) EraseAll() error
- func (c *LocalCache) EraseNotAccessedInLast30Days() error
- func (c *LocalCache) Get(digest, src string) (*RunKit, error)
- func (c *LocalCache) ListCache() (string, []CacheEntry, int64, error)
- func (c *LocalCache) Set(digest string, runxConfig, runxDoc []byte) error
- type LocalConfig
- type Opt
- type OptType
- 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 ( ActionTypeRun ActionType = "run" ActionTypeBuild ActionType = "build" OptTypeNotSet OptType = "" OptTypeInput OptType = "input" OptTypeSelect OptType = "select" OptTypeConfirm OptType = "confirm" )
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
type CacheEntry ¶ added in v0.1.0
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 LocalCache ¶ added in v0.1.0
type LocalCache struct {
// contains filtered or unexported fields
}
func NewLocalCache ¶ added in v0.1.0
func NewLocalCache(cli command.Cli) *LocalCache
func (*LocalCache) EraseAll ¶ added in v0.1.0
func (c *LocalCache) EraseAll() error
func (*LocalCache) EraseNotAccessedInLast30Days ¶ added in v0.1.0
func (c *LocalCache) EraseNotAccessedInLast30Days() error
func (*LocalCache) Get ¶ added in v0.1.0
func (c *LocalCache) Get(digest, src string) (*RunKit, error)
func (*LocalCache) ListCache ¶ added in v0.1.0
func (c *LocalCache) ListCache() (string, []CacheEntry, int64, error)
type LocalConfig ¶ added in v0.0.6
type LocalConfig struct { AcceptTheRisk bool `yaml:"accept-the-risk,omitempty" json:"accept-the-risk,omitempty"` 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
func (*LocalConfig) Image ¶ added in v0.1.0
func (lc *LocalConfig) Image(src string) (*ConfigImage, bool)
type Opt ¶ added in v0.0.5
type Opt struct { Name string `yaml:"name" json:"name"` Type OptType `yaml:"type,omitempty" json:"type,omitempty"` 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"` Default string `yaml:"default,omitempty" json:"default,omitempty"` }
type RunKit ¶ added in v0.0.3
type Runnable ¶ added in v0.0.3
func (*Runnable) CheckFlags ¶ added in v0.1.0
Click to show internal directories.
Click to hide internal directories.