output

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2023 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TypeApply = "apply"
	TypeFile  = "file"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ApplyConfig

type ApplyConfig struct {
	CreateOnly bool `json:"createOnly"`
}

ApplyConfig represents the configuration for directly applying sealed secret

func (*ApplyConfig) UpdateSealedSecret

func (c *ApplyConfig) UpdateSealedSecret(
	ctx context.Context,
	k8sConfig clientcmd.ClientConfig,
	pubKey *rsa.PublicKey,
	secret *v1.Secret,
) error

UpdateSealedSecret updates a sealed secret by applying it directly to the cluster

type FileConfig

type FileConfig struct {
	Path       string `json:"path"`
	Relative   bool   `json:"relative"`
	CreateOnly bool   `json:"createOnly"`
}

FileConfig represents the configuration for using a file as sealed secret output

func (*FileConfig) UpdateSealedSecret

func (c *FileConfig) UpdateSealedSecret(
	ctx context.Context,
	k8sConfig clientcmd.ClientConfig,
	pubKey *rsa.PublicKey,
	secret *v1.Secret,
) error

UpdateSealedSecret updates a sealed secret and writes it to a file

type Output

type Output struct {
	Type   string                 `json:"type"`
	Config map[string]interface{} `json:"config"`
}

Output represents a sealed secret output

Jump to

Keyboard shortcuts

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