apicore

package
v0.0.0-...-a04e4eb Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrUnsupportedParameterType = errors.New("unsupported parameter type")

Functions

This section is empty.

Types

type APICore

type APICore interface {
	// GetRevision retrieves a record of the latest or specific version.
	GetRevision(ctx context.Context, input GetRevisionInput) (*revisioning.Revision, error)
	// GetCanonicalVersion resolves a labeled/staged version to return a deterministic canonical version.
	GetCanonicalVersion(ctx context.Context, input GetCanonicalVersionInput) (versioning.CanonicalVersion, error)
	// ListVersions retrieves records of recent multiple versions.
	ListVersions(ctx context.Context, input ListVersionsInput) (VersionList, error)
}

APICore abstracts AWS SecretsManager and Parameter Store clients. Note that neither APICore nor ParameterStoreAPI can handle relative versions.

type GetCanonicalVersionInput

type GetCanonicalVersionInput struct {
	Name               string
	VersionRequirement versioning.AbsoluteVersionRequirement
}

type GetRevisionInput

type GetRevisionInput struct {
	Name               string
	VersionRequirement *versioning.AbsoluteVersionRequirement
}

type ListRevisionsInput

type ListRevisionsInput struct {
	Name       string
	MaxResults *int32
}

type ListVersionsInput

type ListVersionsInput struct {
	Name       string
	MaxResults *int32
}

type ParameterStoreAPI

type ParameterStoreAPI interface {
	APICore
	// ListRevisions retrieves records of recent multiple versions and their revisions.
	ListRevisions(ctx context.Context, input ListRevisionsInput) (RevisionList, error)
}

ParameterStoreAPI provides extended features for Parameter Store.

type RevisionList

type RevisionList struct {
	Items []*revisioning.Revision // sorted
}

type VersionList

type VersionList struct {
	Items []versioning.Version // sorted
}

Jump to

Keyboard shortcuts

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