Documentation ¶
Index ¶
- func GetRunTask(ctx context.Context, client *clients.Client, ...) (*packermodels.HashicorpCloudPacker20230101GetRegistryTFCRunTaskAPIResponse, ...)
- func RegenerateHMAC(ctx context.Context, client *clients.Client, ...) (*packermodels.HashicorpCloudPacker20230101RegenerateTFCRunTaskHmacKeyResponse, ...)
- type Artifact
- type Bucket
- type Build
- type Channel
- func CreatePackerChannel(ctx context.Context, client *clients.Client, ...) (*Channel, error)
- func DeletePackerChannel(ctx context.Context, client *clients.Client, ...) (*Channel, error)
- func GetChannelByName(client *clients.Client, location location.BucketLocation, name string) (*Channel, error)
- func GetPackerChannelByNameFromList(ctx context.Context, client *clients.Client, ...) (*Channel, error)
- func UpdatePackerChannel(ctx context.Context, client *clients.Client, ...) (*Channel, error)
- func UpdatePackerChannelAssignment(ctx context.Context, client *clients.Client, ...) (*Channel, error)
- type CreateArtifactBody
- type GRPCError
- type GetChannelParams
- type GetVersionParams
- type Registry
- type RegistryFeatureTier
- type Version
- func GetVersionByChannelName(client *clients.Client, location location.BucketLocation, channelName string) (*Version, error)
- func GetVersionByChannelNameDiags(client *clients.Client, location location.BucketLocation, channelName string) (*Version, diag.Diagnostics)
- func GetVersionByFingerprint(client *clients.Client, location location.BucketLocation, fingerprint string) (*Version, error)
- func GetVersionByFingerprintDiags(client *clients.Client, location location.BucketLocation, fingerprint string) (*Version, diag.Diagnostics)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetRunTask ¶
func GetRunTask( ctx context.Context, client *clients.Client, location *sharedmodels.HashicorpCloudLocationLocation, ) (*packermodels.HashicorpCloudPacker20230101GetRegistryTFCRunTaskAPIResponse, error)
GetRunTask queries the HCP Packer Registry for the API information needed to configure a run task
func RegenerateHMAC ¶
func RegenerateHMAC( ctx context.Context, client *clients.Client, location *sharedmodels.HashicorpCloudLocationLocation, ) (*packermodels.HashicorpCloudPacker20230101RegenerateTFCRunTaskHmacKeyResponse, error)
RegenerateHMAC triggers the HCP Packer Registry's run task HMAC Key to be regenerated
Types ¶
type Artifact ¶
type Artifact = packermodels.HashicorpCloudPacker20230101Artifact
type Bucket ¶
type Bucket = packermodels.HashicorpCloudPacker20230101Bucket
func ListBuckets ¶
func ListBuckets(ctx context.Context, client *clients.Client, loc *sharedmodels.HashicorpCloudLocationLocation) ([]*Bucket, error)
ListBuckets queries the HCP Packer registry for all associated buckets.
type Build ¶
type Build = packermodels.HashicorpCloudPacker20230101Build
type Channel ¶
type Channel = packermodels.HashicorpCloudPacker20230101Channel
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 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 CreateArtifactBody ¶
type CreateArtifactBody = packermodels.HashicorpCloudPacker20230101ArtifactCreateBody
type GRPCError ¶
type GRPCError interface { error GetPayload() *sharedmodels.GoogleRPCStatus }
type GetChannelParams ¶
type GetChannelParams = packerservice.PackerServiceGetChannelParams
type GetVersionParams ¶
type GetVersionParams = packerservice.PackerServiceGetVersionParams
type Registry ¶
type Registry = packermodels.HashicorpCloudPacker20230101Registry
type RegistryFeatureTier ¶
type RegistryFeatureTier = packermodels.HashicorpCloudPacker20230101RegistryConfigTier
type Version ¶
type Version = packermodels.HashicorpCloudPacker20230101Version
func GetVersionByChannelName ¶
func GetVersionByChannelNameDiags ¶
func GetVersionByChannelNameDiags(client *clients.Client, location location.BucketLocation, channelName string) (*Version, diag.Diagnostics)
func GetVersionByFingerprint ¶
func GetVersionByFingerprintDiags ¶
func GetVersionByFingerprintDiags(client *clients.Client, location location.BucketLocation, fingerprint string) (*Version, diag.Diagnostics)
Click to show internal directories.
Click to hide internal directories.