secret

package
v0.21.0 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decrypt

func Decrypt(options *DecryptOptions) (*sdk.SecretDecryptedItem, error)

func DecryptRaw

func DecryptRaw(options *DecryptOptions) (*sdk.SecretDecryptedItem, *http.Response, error)

func Encrypt

func Encrypt(options *EncryptOptions) (*sdk.SecretEncryptedItem, error)

func EncryptRaw

func EncryptRaw(options *EncryptOptions) (*sdk.SecretEncryptedItem, *http.Response, error)

Types

type DecryptOptions

type DecryptOptions struct {
	common.Options

	sdk.SecretDecryptAction
}

func NewDecryptOptions

func NewDecryptOptions() *DecryptOptions

func (*DecryptOptions) UpdateSelfFlags

func (options *DecryptOptions) UpdateSelfFlags(flags *pflag.FlagSet)

type DefinitionData

type DefinitionData map[string]any

func TranscriptConfigurationRaw

func TranscriptConfigurationRaw(options *TranscriptConfigurationOptions) (DefinitionData, *http.Response, error)

type DefinitionItem

type DefinitionItem struct {
	Data DefinitionData

	Bytes []byte
}

func TranscriptConfiguration

func TranscriptConfiguration(options *TranscriptConfigurationOptions) (*DefinitionItem, error)

type EncryptOptions

type EncryptOptions struct {
	common.Options

	sdk.SecretEncryptAction
}

func NewEncryptOptions

func NewEncryptOptions() *EncryptOptions

func (*EncryptOptions) UpdateSelfFlags

func (options *EncryptOptions) UpdateSelfFlags(flags *pflag.FlagSet)

type TranscriptConfigurationOptions

type TranscriptConfigurationOptions struct {
	common.Options

	DefinitionFilePath string

	sdk.SecretTranscryptConfigurationAction
}

func NewTranscriptConfigurationOptions

func NewTranscriptConfigurationOptions() *TranscriptConfigurationOptions

func (*TranscriptConfigurationOptions) UpdateSelfFlags

func (options *TranscriptConfigurationOptions) UpdateSelfFlags(flags *pflag.FlagSet)

type TranscriptMode

type TranscriptMode string
const (
	TranscriptModeExposed    TranscriptMode = "exposed"
	TranscriptModeObfuscated TranscriptMode = "obfuscated"
	TranscriptModeResolved   TranscriptMode = "resolved"
)

Jump to

Keyboard shortcuts

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