secretentity

package
v1.0.0-beta.227 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsSecretNotFoundError

func IsSecretNotFoundError(err error) bool

IsSecretNotFoundError returns true if the error is a SecretNotFoundError.

Types

type CreateAppSecretInput

type CreateAppSecretInput struct {
	AppID app.AppID
	Key   string
	Value string
}

func (CreateAppSecretInput) Validate

func (i CreateAppSecretInput) Validate() error

type DeleteAppSecretInput

type DeleteAppSecretInput = SecretID

type GetAppSecretInput

type GetAppSecretInput = SecretID

type Secret

type Secret struct {
	SecretID SecretID
	Value    string
}

Secret represents a secret with a value.

func (Secret) Validate

func (s Secret) Validate() error

type SecretID

type SecretID struct {
	models.NamespacedID
	AppID app.AppID
	Key   string
}

SecretID represents a secret identifier.

func NewSecretID

func NewSecretID(appID app.AppID, id string, key string) SecretID

func (SecretID) Validate

func (i SecretID) Validate() error

type SecretNotFoundError

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

func NewSecretNotFoundError

func NewSecretNotFoundError(id SecretID) *SecretNotFoundError

func (*SecretNotFoundError) Error

func (e *SecretNotFoundError) Error() string

func (*SecretNotFoundError) Unwrap

func (e *SecretNotFoundError) Unwrap() error

type UpdateAppSecretInput

type UpdateAppSecretInput struct {
	AppID    app.AppID
	SecretID SecretID
	Key      string
	Value    string
}

func (UpdateAppSecretInput) Validate

func (i UpdateAppSecretInput) Validate() error

Jump to

Keyboard shortcuts

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