generate

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2019 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Generate

func Generate(name string, namespace string, keySize int, keyTTL time.Duration) ([]byte, error)

Types

type Metadata

type Metadata struct {
	Name      string `json:"name,omitempty"`
	Namespace string `json:"namespace,omitempty"`
}

type Secret

type Secret struct {
	APIVersion string            `json:"apiVersion,omitempty"`
	Kind       string            `json:"kind,omitempty"`
	Type       string            `json:"type,omitempty"`
	ObjectMeta Metadata          `json:"metadata,omitempty"`
	Data       map[string][]byte `json:"data,omitempty"`
}

func CopyKubernetesSecret

func CopyKubernetesSecret(s *v1.Secret) (*Secret, error)

func (*Secret) AsYAML

func (s *Secret) AsYAML() ([]byte, error)

Jump to

Keyboard shortcuts

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