Documentation ¶
Index ¶
- Constants
- func AddRootCAToTransport(CAPath string, transport *http.Transport) error
- func ErrorHelper(state multistep.StateBag, ui packersdk.Ui, prefix string, err error) multistep.StepAction
- func NewLinodeClient(token string) *linodego.Client
- func NewLinodeClientWithCA(token, CAPath string) (*linodego.Client, error)
- type LinodeCommon
Constants ¶
View Source
const TokenEnvVar = "LINODE_TOKEN"
Variables ¶
This section is empty.
Functions ¶
func AddRootCAToTransport ¶ added in v1.5.7
AddRootCAToTransport applies the CA at the given path to the given *http.Transport
func ErrorHelper ¶
func ErrorHelper(state multistep.StateBag, ui packersdk.Ui, prefix string, err error) multistep.StepAction
errorHelper is a helper function to reduce the amount of bloat and complexity caused by redundant error handling logic.
func NewLinodeClient ¶
Types ¶
type LinodeCommon ¶
type LinodeCommon struct { // The Linode API token required for provision Linode resources. // This can also be specified in `LINODE_TOKEN` environment variable. // Saving the token in the environment or centralized vaults // can reduce the risk of the token being leaked from the codebase. // `images:read_write`, `linodes:read_write`, and `events:read_only` // scopes are required for the API token. PersonalAccessToken string `mapstructure:"linode_token"` // The path to a CA file to trust when making API requests. // It can also be specified using the `LINODE_CA` environment variable. APICAPath string `mapstructure:"api_ca_path"` }
The common configuration options related to Linode services
Click to show internal directories.
Click to hide internal directories.