model

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: May 8, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultPrivate = "private"
View Source
var DefaultPublic = "public"
View Source
var ExpiresLabel = "expires"
View Source
var KudecsV1CRDSchema = schema.GroupVersionResource{
	Group:    "kubernetes-misc.xyz",
	Version:  "v1",
	Resource: "kudecs",
}
View Source
var LogFAIL = "  FAIL"
View Source
var LogOK = "  OK"
View Source
var StoreNamespace string

Functions

func GetExpiresFromSecret added in v1.0.0

func GetExpiresFromSecret(secret *v1.Secret, labelName string) (expires time.Time, err error)

func NewInjectSecret added in v1.0.0

func NewInjectSecret(c InjectedSecretsV1, masterSecret *v1.Secret) *v1.Secret

Types

type InjectedSecretsV1 added in v0.2.0

type InjectedSecretsV1 struct {
	Namespace  string `json:"namespace"`
	SecretName string `json:"secretName"`
	SourceKey  string `json:"sourceKey"`
	KeyName    string `json:"keyName"`
}

type Job

type Job struct {
	F func()
}

func (Job) Run

func (j Job) Run()

type KudecsV1

type KudecsV1 struct {
	Metadata MetadataV1 `json:"metadata"`
	Spec     SpecV1     `json:"spec"`
}

func (KudecsV1) GetID

func (cs KudecsV1) GetID() string

func (KudecsV1) GetMasterSecretName

func (cs KudecsV1) GetMasterSecretName() string

type MetadataV1

type MetadataV1 struct {
	Name      string `json:"name"`
	Namespace string `json:"namespace"`
}

type SpecV1

type SpecV1 struct {
	Days               int                 `json:"days"`
	CountryName        string              `json:"countryName"`
	StateName          string              `json:"stateName"`
	LocalityName       string              `json:"localityName"`
	OrganizationName   string              `json:"organizationName"`
	OrganizationalUnit string              `json:"organizationalUnit"`
	CommonName         string              `json:"commonName"`
	EmailAddress       string              `json:"emailAddress"`
	InjectedSecrets    []InjectedSecretsV1 `json:"injectedSecrets"`
}

Jump to

Keyboard shortcuts

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