Documentation
¶
Index ¶
Constants ¶
View Source
const ( TagUUID = "site-uuid" TagOTP = "otp" TagCredsURL = "creds-url" TagCACert = "cacert" )
Tags must match those in SecretConfig
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bootstrap ¶
type Bootstrap struct {
Config *SecretConfig
State *State
Secret coreV1Types.SecretInterface
Secretfiles map[string]bool
}
Bootstrap - data type for Bootstrap
func NewBootstrapInstance ¶
func NewBootstrapInstance() *Bootstrap
NewBootstrapInstance - creates a new instance of Bootstrap
type SecretConfig ¶
type SecretConfig struct {
UUID string `yaml:"site-uuid"`
OTP string `yaml:"otp"`
CredsURL string `yaml:"creds-url"`
CACert string `yaml:"cacert"`
}
SecretConfig Secret file contents of the data section
type SiteCredsResponse ¶
type SiteCredsResponse struct {
// Key is the private key
Key string `json:"key,omitempty"`
// Certificate is the client certificate
Certificate string `json:"certificate,omitempty"`
// CACertificate is the CA cert for validating the server
CACertificate string `json:"cacertificate,omitempty"`
}
SiteCredsResponse defines a site credentials response
Click to show internal directories.
Click to hide internal directories.