restricted

package
v0.0.0-...-e7c744b Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GlobalSecretStore *restrictedSecretStore

GlobalSecretStore object that wraps the main secret store and restricts access to certain items nolint: gochecknoglobals

Functions

func HasForbiddenTag

func HasForbiddenTag(tags []string) error

HasForbiddenTag is looking for forbidden tags

func InitSecretStore

func InitSecretStore(store secretStore)

InitSecretStore initializes the global secret store.

Types

type ForbiddenError

type ForbiddenError struct {
	ForbiddenTag string
}

ForbiddenError describes a secret error where it contains forbidden tag

func (ForbiddenError) Error

func (f ForbiddenError) Error() string

type ReadOnlyError

type ReadOnlyError struct {
	SecretID string
}

ReadOnlyError describes a secret error where it contains read only tag

func (ReadOnlyError) Error

func (roe ReadOnlyError) Error() string

Jump to

Keyboard shortcuts

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