helper

package
v1.5.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 9, 2024 License: MPL-2.0 Imports: 7 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const TokenEnvVar = "LINODE_TOKEN"

Variables

This section is empty.

Functions

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

func NewLinodeClient(token string) linodego.Client

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 common configuration options related to Linode services

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL