Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Backend ¶
type Backend struct {
Address string
Name string
OverrideHost string
Port uint
SSLSNIHostname string
}
Backend represents the configuration parameters for creating a backend via the API client.
type Backends ¶
type Backends struct {
// Public
Available []*fastly.Backend
APIClient api.Interface
Progress text.Progress
Required []Backend
ServiceID string
ServiceVersion int
Setup map[string]*manifest.SetupBackend
AcceptDefaults bool
Stdin io.Reader
Stdout io.Writer
}
Backends represents the service state related to backends defined within the fastly.toml setup configuration.
NOTE: It implements the setup.Interface interface.
func (*Backends) Configure ¶
Configure prompts the user for specific values related to the service resource.
func (*Backends) Predefined ¶
Predefined indicates if the service resource has been specified within the fastly.toml file using a setup configuration block.
type Domain ¶
type Domain struct {
Name string
}
Domain represents the configuration parameters for creating a domain via the API client.
type Domains ¶
type Domains struct {
// Public
Available []*fastly.Domain
APIClient api.Interface
PackageDomain string
Progress text.Progress
Required []Domain
ServiceID string
ServiceVersion int
AcceptDefaults bool
Stdin io.Reader
Stdout io.Writer
// contains filtered or unexported fields
}
Domains represents the service state related to domains defined within the fastly.toml setup configuration.
NOTE: It implements the setup.Interface interface.
func (*Domains) Configure ¶
Configure prompts the user for specific values related to the service resource.
NOTE: If --domain flag is used we'll use that as the domain to create.
func (*Domains) Predefined ¶
Predefined indicates if the service resource has been specified within the fastly.toml file using a setup configuration block.
NOTE: Domains are not configurable via the fastly.toml setup and so this becomes a no-op function that returned a canned response.
type Interface ¶
type Interface interface {
// Configure prompts the user for specific values related to the service resource.
Configure() error
// Create calls the relevant API to create the service resource(s).
Create() error
// Missing indicates if there are missing resources that need to be
// configured and/or created.
Missing() bool
// Predefined indicates if the service resource has been specified within the
// fastly.toml file using a [setup] configuration block.
Predefined() bool
// Validate checks if the service has the required resources.
Validate() error
}
Interface represents the behaviour of a setup resource.