data

package
v0.0.0-...-e4d9425 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2023 License: MIT Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Alias

type Alias struct {
	AliasArn    string `yaml:"AliasArn"`
	AliasName   string `yaml:"AliasName"`
	TargetKeyId string `yaml:"TargetKeyId"`
}

type Database

type Database struct {
	// contains filtered or unexported fields
}

func NewDatabase

func NewDatabase(path string) *Database

func (*Database) Close

func (d *Database) Close()

func (*Database) DeleteObject

func (d *Database) DeleteObject(arn string) error

Can delete any object type. e.g. key, alias, etc.

func (*Database) ListAlias

func (d *Database) ListAlias(prefix string, limit int64, marker, key string) (aliases []*Alias, err error)

func (*Database) ListKeys

func (d *Database) ListKeys(prefix string, limit int64, marker string) (keys []cmk.Key, err error)

Returns all keys.

If limit is set, only that given number of keys are returned.
If marker is set, only key with match, and come after, the marker key are returned. i.e. an 'offset'.

func (*Database) ListTags

func (d *Database) ListTags(prefix string, limit int64, marker string) (tags []*Tag, err error)

func (*Database) LoadAlias

func (d *Database) LoadAlias(arn string) (*Alias, error)

func (*Database) LoadKey

func (d *Database) LoadKey(arn string) (cmk.Key, error)

func (*Database) SaveAlias

func (d *Database) SaveAlias(a *Alias) error

func (*Database) SaveKey

func (d *Database) SaveKey(k cmk.Key) error

func (*Database) SaveTag

func (d *Database) SaveTag(k cmk.Key, t *Tag) error

type InvalidMarkerExceptionError

type InvalidMarkerExceptionError struct{}

func (*InvalidMarkerExceptionError) Error

type Tag

type Tag struct {
	TagKey   string
	TagValue string
}

Jump to

Keyboard shortcuts

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