cmk

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2026 License: Apache-2.0 Imports: 40 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIController

type APIController struct {
	Repository repo.Repo
	Manager    *manager.Manager

	AuthzEngine *authzmodel.Engine
	// contains filtered or unexported fields
}

APIController handles API requests related to CMK (Customer Managed Keys).

func NewAPIController

func NewAPIController(
	ctx context.Context,
	r repo.Repo,
	config *config.Config,
	clientsFactory clients.Factory,
	migrator db.Migrator,
) *APIController

NewAPIController creates a new instance of APIController with the provided Repository. It initializes a logger for the controller.

func (*APIController) AddTagsToKeyConfiguration

AddTagsToKeyConfiguration adds tags to a key configuration

func (*APIController) CheckGroupsIAM

func (*APIController) CheckWorkflow

func (*APIController) CreateGroup

func (*APIController) CreateKeyVersion

CreateKeyVersion creates a new key version for L1 Key ID

func (*APIController) CreateOrUpdateLabels

CreateOrUpdateLabels handle adding a new label to the key if does not already exist otherwise update them.

func (*APIController) CreateWorkflow

CreateWorkflow creates a new workflow

func (*APIController) DeleteGroupByID

func (*APIController) DeleteKeyConfigurationByID

DeleteKeyConfigurationByID deletes a key configuration by ID

func (*APIController) DeleteKeysKeyID

DeleteKeysKeyID handles deleting a key by its ID

func (*APIController) DeleteLabel

DeleteLabel handles deleting the label attached to the key specified by its ID and a label is specified by its name.

func (*APIController) GetAllSystems

func (*APIController) GetGroupByID

func (*APIController) GetGroups

func (*APIController) GetKeyConfigurationByID

GetKeyConfigurationByID returns a key configuration by ID

func (*APIController) GetKeyConfigurations

GetKeyConfigurations returns the key configurations

func (*APIController) GetKeyLabels

GetKeyLabels handles fetching a list of all the labels attached to the key.

func (*APIController) GetKeyVersionByNumber

GetKeyVersionByNumber returns a key version by key version number and L1 key ID

func (*APIController) GetKeyVersions

GetKeyVersions returns a list of key version by L1 Key ID

func (*APIController) GetKeys

GetKeys handles retrieving all keys

func (*APIController) GetKeysKeyID

GetKeysKeyID handles retrieving a key by its ID

func (*APIController) GetSystemByID

func (*APIController) GetTagsForKeyConfiguration

GetTagsForKeyConfiguration returns the tags for a key configuration

func (*APIController) GetTenants

func (*APIController) GetWorkflows

GetWorkflows returns a list of workflows

func (*APIController) PostKeyConfigurations

PostKeyConfigurations creates a new key configuration

func (*APIController) PostKeys

PostKeys handles the creation of a new key

func (*APIController) UpdateGroup

func (*APIController) UpdateKey

UpdateKey handles updating an existing key

func (*APIController) UpdateKeyConfigurationByID

UpdateKeyConfigurationByID updates a key configuration by ID

Jump to

Keyboard shortcuts

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