Documentation ¶
Index ¶
- type AzureOutput
- type Config
- type InstallAction
- type InstallArguments
- type InstallStep
- type Mixin
- func (m *Mixin) Build(ctx context.Context) error
- func (m *Mixin) GetSchema() (string, error)
- func (m *Mixin) Install(ctx context.Context) error
- func (m *Mixin) LoadConfigFromEnvironment() error
- func (m *Mixin) PrintSchema() error
- func (m *Mixin) PrintVersion(opts version.Options) error
- func (m *Mixin) Uninstall(ctx context.Context) error
- type Step
- type TestMixin
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AzureOutput ¶
type Config ¶
type Config struct { Environment azure.Environment SubscriptionID string `envconfig:"SUBSCRIPTION_ID" required:"true"` TenantID string `envconfig:"TENANT_ID" required:"true"` ClientID string `envconfig:"CLIENT_ID" required:"true"` ClientSecret string `envconfig:"CLIENT_SECRET" required:"true"` }
Config represents details necessary for the broker to interact with an Azure subscription
func GetConfigFromEnvironment ¶
GetConfigFromEnvironment returns Azure-related configuration derived from environment variables
func NewConfigWithDefaults ¶
func NewConfigWithDefaults() Config
NewConfigWithDefaults returns a Config object with default values already applied. Callers are then free to set custom values for the remaining fields and/or override default values.
type InstallAction ¶
type InstallAction struct {
Steps []InstallStep `yaml:"install"`
}
type InstallArguments ¶
type InstallStep ¶
type InstallStep struct {
InstallArguments `yaml:"arm"`
}
type Mixin ¶
type Mixin struct { runtime.RuntimeConfig // contains filtered or unexported fields }
func (*Mixin) Build ¶
Build will generate the necessary Dockerfile lines for an invocation image using this mixin
func (*Mixin) LoadConfigFromEnvironment ¶
func (*Mixin) PrintSchema ¶
type Step ¶
type Step struct { Description string `yaml:"description"` Outputs []AzureOutput `yaml:"outputs"` }
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.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.