secrets

package
v0.0.99 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2020 License: UPL-1.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Secrets contains all secrets.
	Secrets []Secret
)

Functions

func CreateSecret

func CreateSecret(w http.ResponseWriter, r *http.Request)

CreateSecret creates a secret as requested.

func DeleteSecret

func DeleteSecret(w http.ResponseWriter, r *http.Request)

DeleteSecret will delete a secret identified by the secret Kubernetes UID.

func Init

func Init(listers controller.Listers)

Init initialization for secrets API.

func ReturnAllSecrets

func ReturnAllSecrets(w http.ResponseWriter, r *http.Request)

ReturnAllSecrets returns all secrets used by model and bindings.

func ReturnSingleSecret

func ReturnSingleSecret(w http.ResponseWriter, r *http.Request)

ReturnSingleSecret returns a single secret identified by the secret Kubernetes UID.

func UpdateSecret

func UpdateSecret(w http.ResponseWriter, r *http.Request)

UpdateSecret will update a secret identified by the secret Kubernetes UID.

Types

type Data

type Data struct {
	Name  string `json:"name"`
	Value string `json:"value"`
}

Data contains data section of secret.

type DockerRegistry

type DockerRegistry struct {
	Username string `json:"username"`
	Password string `json:"password"`
	Email    string `json:"email"`
	Server   string `json:"server"`
}

DockerRegistry contains the fields for a Docker registry secret.

type Secret

type Secret struct {
	ID             string         `json:"id"`
	Cluster        string         `json:"cluster"`
	Type           string         `json:"type"`
	Name           string         `json:"name"`
	Namespace      string         `json:"namespace"`
	Status         string         `json:"status"`
	Data           []Data         `json:"data,omitempty"`
	DockerRegistry DockerRegistry `json:"dockerRegistry,omitempty"`
}

Secret details of secret returned in API calls.

Jump to

Keyboard shortcuts

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