revisioning

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: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidRevisionContent = errors.New("invalid revision content")

Functions

This section is empty.

Types

type Revision

type Revision struct {
	Version versioning.Version
	Content *RevisionContent
	Date    time.Time
}

type RevisionContent

type RevisionContent struct {
	Type RevisionContentType
	// StringValue is valid when Type == RevisionContentTypeString.
	StringValue string
	// BytesValue is valid when Type == RevisionContentTypeBytes.
	BytesValue []byte
	// EncryptionEnabled is true for:
	//   - Secrets Manager records
	//   - Parameter Store "SecureString" records
	EncryptionEnabled bool
}

func (*RevisionContent) String

func (content *RevisionContent) String() string

type RevisionContentType

type RevisionContentType int
const (
	RevisionContentTypeUnknown RevisionContentType = iota
	// RevisionContentTypeString is used for general purposes.
	RevisionContentTypeString
	// RevisionContentTypeBytes is used for binary records in Secrets Manager.
	RevisionContentTypeBytes
)

func (RevisionContentType) String

func (i RevisionContentType) String() string

Jump to

Keyboard shortcuts

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