common

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2019 License: MPL-2.0, MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AzureVaultApiVersion = "2016-10-01"
)

Variables

View Source
var TemplateFuncs = template.FuncMap{
	"clean_resource_name": templateCleanImageName,
}

Functions

func DumpConfig added in v0.10.1

func DumpConfig(config interface{}, say func(string))

func GlueStrings

func GlueStrings(a, b string) string

removes overlap between the end of a and the start of b and glues them together

func IsStateCancelled added in v0.10.1

func IsStateCancelled(stateBag multistep.StateBag) bool

Types

type Artifact added in v1.4.5

type Artifact struct {
	// Array of the Azure resource IDs that were created.
	Resources []string

	// BuilderId is the unique ID for the builder that created this AMI
	BuilderIdValue string

	// Azure client for performing API stuff.
	AzureClientSet client.AzureClientSet
}

Artifact is an artifact implementation that contains built Managed Images or Disks.

func (*Artifact) BuilderId added in v1.4.5

func (a *Artifact) BuilderId() string

func (*Artifact) Destroy added in v1.4.5

func (a *Artifact) Destroy() error

func (*Artifact) Files added in v1.4.5

func (*Artifact) Files() []string

func (*Artifact) Id added in v1.4.5

func (a *Artifact) Id() string

func (*Artifact) State added in v1.4.5

func (a *Artifact) State(name string) interface{}

func (*Artifact) String added in v1.4.5

func (a *Artifact) String() string

type Secret added in v0.10.1

type Secret struct {
	ID    *string `json:"id,omitempty"`
	Value string  `json:"value"`
}

type VaultClient added in v0.10.1

type VaultClient struct {
	autorest.Client

	SubscriptionID string
	// contains filtered or unexported fields
}

func NewVaultClient added in v0.11.0

func NewVaultClient(keyVaultEndpoint url.URL) VaultClient

func NewVaultClientWithBaseURI added in v1.1.3

func NewVaultClientWithBaseURI(baseURI, subscriptionID string) VaultClient

func (*VaultClient) Delete added in v1.1.3

func (client *VaultClient) Delete(resourceGroupName string, vaultName string) (result autorest.Response, err error)

Delete deletes the specified Azure key vault.

resourceGroupName is the name of the Resource Group to which the vault belongs. vaultName is the name of the vault to delete

func (*VaultClient) DeletePreparer added in v1.1.3

func (client *VaultClient) DeletePreparer(resourceGroupName string, vaultName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (*VaultClient) DeleteResponder added in v1.1.3

func (client *VaultClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)

DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.

func (*VaultClient) DeleteSender added in v1.1.3

func (client *VaultClient) DeleteSender(req *http.Request) (*http.Response, error)

DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.

func (*VaultClient) GetSecret added in v0.10.1

func (client *VaultClient) GetSecret(vaultName, secretName string) (*Secret, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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