types

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var FormatIds = map[Format][]string{
	YAML:          {"yaml"},
	JSON:          {"json"},
	SEALED_SECRET: {"sealed-secret"},
}

Functions

This section is empty.

Types

type Format

type Format int
const (
	YAML Format = iota
	JSON
	SEALED_SECRET
)

type PostResolvedSecretTemplateSpec

type PostResolvedSecretTemplateSpec struct {
	PostResolvedData       map[string][]byte
	PostResolvedStringData map[string]string
	PostResolvedTls        ResolvedTls
}

type PreResolvedSecretTemplateSpec

type PreResolvedSecretTemplateSpec struct {
	PreResolvedData       interface{}
	PreResolvedStringData interface{}
	PreResolvedTls        interface{}
}

type ResolvedSecretTemplateSpec

type ResolvedSecretTemplateSpec struct {
	ResolvedData       map[string]interface{}
	ResolvedStringData map[string]interface{}
	ResolvedTls        map[string]interface{}
}

type ResolvedTls

type ResolvedTls struct {
	Key []byte
	Crt []byte
}

type SecretTemplate

type SecretTemplate struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              SecretTemplateSpec `json:"spec,omitempty"`
}

type SecretTemplateList

type SecretTemplateList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []SecretTemplate `json:"items"`
}

type SecretTemplateSpec

type SecretTemplateSpec struct {
	// Standard Secret fields
	corev1.Secret `json:",inline"`

	// Overriden standard Secret fields
	Data       interface{} `json:"data,omitempty"`
	StringData interface{} `json:"stringData,omitempty"`

	// Template-specific fields
	Tls *Tls `json:"tls,omitempty"`
}

type Tls

type Tls struct {
	Pkcs12   string `json:"pkcs12,omitempty"`
	Password string `json:"password,omitempty"`
}

Jump to

Keyboard shortcuts

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