location

package
v0.93.0 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2024 License: MPL-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BucketLocation

type BucketLocation interface {
	Location
	GetBucketName() string
}

BucketLocation represents the location of a target in HCP, identified by an organization ID, a project ID, and a bucket name.

For example, a Channel is located at a BucketLocation.

type ChannelLocation

type ChannelLocation interface {
	BucketLocation
	GetChannelName() string
}

ChannelLocation represents the location of a target in HCP, identified by an organization ID, a project ID, a bucket name, and a channel name.

For example, a Version is located at a ChannelLocation.

type GenericBucketLocation

type GenericBucketLocation struct {
	Location
	BucketName string
}

func (GenericBucketLocation) GetBucketName

func (l GenericBucketLocation) GetBucketName() string

type GenericChannelLocation

type GenericChannelLocation struct {
	BucketLocation
	ChannelName string
}

func (GenericChannelLocation) GetChannelName

func (l GenericChannelLocation) GetChannelName() string

type GenericLocation

type GenericLocation struct {
	OrganizationID string
	ProjectID      string
}

func (GenericLocation) GetOrganizationID

func (l GenericLocation) GetOrganizationID() string

func (GenericLocation) GetProjectID

func (l GenericLocation) GetProjectID() string

type GenericVersionLocation

type GenericVersionLocation struct {
	BucketLocation
	VersionFingerprint string
}

func (GenericVersionLocation) GetVersionFingerprint

func (l GenericVersionLocation) GetVersionFingerprint() string

type Location

type Location = ProjectLocation

type OrganizationLocation

type OrganizationLocation interface {
	GetOrganizationID() string
}

OrganizationLocation represents the location of a target in HCP, identified by an organization ID.

For example, a Project is located at an OrganizationLocation.

type ProjectLocation

type ProjectLocation interface {
	OrganizationLocation
	GetProjectID() string
}

ProjectLocation represents the location of a target in HCP, identified by an organization ID and a project ID.

For example, a Bucket is located at a ProjectLocation.

type VersionLocation

type VersionLocation interface {
	BucketLocation
	GetVersionFingerprint() string
}

VersionLocation represents the location of a target in HCP, identified by an organization ID, a project ID, a bucket name, and a version fingerprint.

For example, an Artifact is located at a VersionLocation.

Jump to

Keyboard shortcuts

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