Documentation
¶
Index ¶
Constants ¶
View Source
const ( ConfigType = "scripts.ocm" + cfgcpi.OCM_CONFIG_TYPE_SUFFIX ConfigTypeV1 = ConfigType + runtime.VersionSeparator + "v1" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
runtime.ObjectVersionedType `json:",inline"`
Scripts map[string]ScriptSpec `json:"scripts"`
}
Config describes a memory based repository interface.
func (*Config) AddScriptFile ¶
func (a *Config) AddScriptFile(name, path string, fss ...vfs.FileSystem)
type Option ¶
type Option struct {
spiff.TransferOptionsCreator
ScriptFile string
Script string
ScriptData []byte
FileSystem vfs.FileSystem
}
func From ¶
func From(o options.OptionSetProvider) *Option
func (*Option) ApplyTransferOption ¶ added in v0.4.0
func (o *Option) ApplyTransferOption(opts transferhandler.TransferOptions) error
type ScriptSpec ¶
type ScriptSpec struct {
Path string `json:"path,omitempty"`
Script json.RawMessage `json:"script,omitempty"`
FileSystem vfs.FileSystem `json:"-"`
}
Click to show internal directories.
Click to hide internal directories.