packerv2

package
v0.96.0 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2024 License: MPL-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetRunTask

GetRunTask queries the HCP Packer Registry for the API information needed to configure a run task

func RegenerateHMAC

RegenerateHMAC triggers the HCP Packer Registry's run task HMAC Key to be regenerated

Types

type Bucket

func CreateBucket added in v0.94.0

func CreateBucket(ctx context.Context, client *clients.Client, loc *sharedmodels.HashicorpCloudLocationLocation, name string) (*Bucket, error)

func ListBuckets

ListBuckets queries the HCP Packer registry for all associated buckets.

type Channel

func CreatePackerChannel

func CreatePackerChannel(
	ctx context.Context, client *clients.Client, location *sharedmodels.HashicorpCloudLocationLocation,
	bucketName string, channelName string, restricted bool,
) (*Channel, error)

CreatePackerChannel creates a channel in tge given bucket.

func DeletePackerChannel

func DeletePackerChannel(
	ctx context.Context, client *clients.Client, location *sharedmodels.HashicorpCloudLocationLocation,
	bucketName, channelName string,
) (*Channel, error)

DeletePackerChannel deletes a channel from the named bucket.

func GetChannelByName

func GetChannelByName(client *clients.Client, location location.BucketLocation, name string) (*Channel, error)

func GetPackerChannelByNameFromList

func GetPackerChannelByNameFromList(
	ctx context.Context, client *clients.Client, location *sharedmodels.HashicorpCloudLocationLocation, bucketName string,
	channelName string,
) (*Channel, error)

GetPackerChannelByNameFromList queries the HCP Packer Registry for the channel associated with the given channel name, using ListBucketChannels

func UpdatePackerChannel

func UpdatePackerChannel(
	ctx context.Context, client *clients.Client, location *sharedmodels.HashicorpCloudLocationLocation,
	bucketName string, channelName string, restricted bool,
) (*Channel, error)

UpdatePackerChannel updates the named channel.

func UpdatePackerChannelAssignment

func UpdatePackerChannelAssignment(
	ctx context.Context, client *clients.Client, location *sharedmodels.HashicorpCloudLocationLocation,
	bucketName, channelName, versionFingerprint string,
) (*Channel, error)

type GRPCError

type GRPCError interface {
	error
	GetPayload() *sharedmodels.GoogleRPCStatus
}

type Version

func GetVersionByChannelName

func GetVersionByChannelName(client *clients.Client, location location.BucketLocation, channelName string) (*Version, error)

func GetVersionByChannelNameDiags

func GetVersionByChannelNameDiags(client *clients.Client, location location.BucketLocation, channelName string) (*Version, diag.Diagnostics)

func GetVersionByFingerprint

func GetVersionByFingerprint(client *clients.Client, location location.BucketLocation, fingerprint string) (*Version, error)

func GetVersionByFingerprintDiags

func GetVersionByFingerprintDiags(client *clients.Client, location location.BucketLocation, fingerprint string) (*Version, diag.Diagnostics)

Jump to

Keyboard shortcuts

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