Documentation ¶
Index ¶
- type BuildInput
- type Install
- type InstallAction
- type Job
- type Mixin
- func (m *Mixin) Build(ctx context.Context) error
- func (m *Mixin) DoAction(action *Nomad) error
- func (m *Mixin) Install(context context.Context) error
- func (m *Mixin) PrintSchema()
- func (m *Mixin) PrintVersion(opts version.Options) error
- func (m *Mixin) Uninstall(context context.Context) error
- func (m *Mixin) Upgrade(context context.Context) error
- type MixinConfig
- type Nomad
- type NomadOutput
- type TestMixin
- type Uninstall
- type UninstallAction
- type Upgrade
- type UpgradeAction
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BuildInput ¶
type BuildInput struct {
Config MixinConfig
}
BuildInput represents stdin passed to the mixin for the build command.
type InstallAction ¶
type InstallAction struct {
Install []Install `yaml:"install"`
}
type Job ¶
type Job struct { // outputs to be used in next steps of porter bundle Outputs []NomadOutput `yaml:"outputs"` // regular job run Path string `yaml:"path,omitempty"` // dispatch job run Dispatch string `yaml:"dispatch,omitempty"` IdPrefixTemplate string `yaml:"idPrefixTemplate"` Payload string `yaml:"payload"` //todo make PayloadPath? Meta map[string]string `yaml:"meta,omitempty"` // job stop Stop string `yaml:"stop,omitempty"` Purge bool `yaml:"purge,omitempty"` // nomad client config Address string `yaml:"address"` Region string `yaml:"region"` Namespace string `yaml:"namespace"` CaCert string `yaml:"caCert"` CaPath string `yaml:"caPath"` ClientCert string `yaml:"clientCert"` ClientKey string `yaml:"clientKey"` TlsServerName string `yaml:"tlsServerName"` TlsSkipVerify bool `yaml:"tlsSkipVerify"` // acl Token string `yaml:"token"` }
type Mixin ¶
type Mixin struct { runtime.RuntimeConfig ClientVersion string }
func (*Mixin) Build ¶
Build will generate the necessary Dockerfile lines for an invocation image using this mixin
func (*Mixin) PrintSchema ¶
func (m *Mixin) PrintSchema()
type MixinConfig ¶
type MixinConfig struct { }
type NomadOutput ¶
type TestMixin ¶
type TestMixin struct { *Mixin TestContext *portercontext.TestContext }
func NewTestMixin ¶
NewTestMixin initializes a mixin test client, with the output buffered, and an in-memory file system.
type UninstallAction ¶
type UninstallAction struct {
Uninstalls []Uninstall `yaml:"uninstall"`
}
type UpgradeAction ¶
type UpgradeAction struct {
Upgrade []Upgrade `yaml:"upgrade"`
}
Click to show internal directories.
Click to hide internal directories.