Documentation ¶
Overview ¶
Package secrets provides resources which store secrets.
Index ¶
- Constants
- type Etcd
- type EtcdCertsSpec
- type Kubernetes
- type KubernetesCertsSpec
- type Root
- func (r *Root) DeepCopy() resource.Resource
- func (r *Root) EtcdSpec() *RootEtcdSpec
- func (r *Root) KubernetesSpec() *RootKubernetesSpec
- func (r *Root) Metadata() *resource.Metadata
- func (r *Root) ResourceDefinition() core.ResourceDefinitionSpec
- func (r *Root) Spec() interface{}
- func (r *Root) String() string
- type RootEtcdSpec
- type RootKubernetesSpec
Constants ¶
const ( RootEtcdID = resource.ID("etcd-root") RootKubernetesID = resource.ID("k8s-root") )
IDs of various resources of RootType.
const EtcdID = resource.ID("etcd")
EtcdID is a resource ID of singletone instance.
const EtcdType = resource.Type("secrets/etcd")
EtcdType is type of Etcd resource.
const KubernetesID = resource.ID("k8s-certs")
KubernetesID is a resource ID of singleton instance.
const KubernetesType = resource.Type("secrets/kubernetes")
KubernetesType is type of Kubernetes resource.
const NamespaceName resource.Namespace = "secrets"
NamespaceName contains resources containing secret material.
const RootType = resource.Type("secrets/root")
RootType is type of Root secret resource.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Etcd ¶
type Etcd struct {
// contains filtered or unexported fields
}
Etcd contains etcd generated secrets.
func (*Etcd) ResourceDefinition ¶
func (r *Etcd) ResourceDefinition() core.ResourceDefinitionSpec
ResourceDefinition implements core.ResourceDefinitionProvider interface.
type EtcdCertsSpec ¶
type EtcdCertsSpec struct {
EtcdPeer *x509.PEMEncodedCertificateAndKey `yaml:"etcdPeer"`
}
EtcdCertsSpec describes etcd certs secrets.
type Kubernetes ¶
type Kubernetes struct {
// contains filtered or unexported fields
}
Kubernetes contains K8s generated secrets.
func NewKubernetes ¶
func NewKubernetes() *Kubernetes
NewKubernetes initializes a Kubernetes resource.
func (*Kubernetes) DeepCopy ¶
func (r *Kubernetes) DeepCopy() resource.Resource
DeepCopy implements resource.Resource.
func (*Kubernetes) Metadata ¶
func (r *Kubernetes) Metadata() *resource.Metadata
Metadata implements resource.Resource.
func (*Kubernetes) ResourceDefinition ¶
func (r *Kubernetes) ResourceDefinition() core.ResourceDefinitionSpec
ResourceDefinition implements core.ResourceDefinitionProvider interface.
func (*Kubernetes) Spec ¶
func (r *Kubernetes) Spec() interface{}
Spec implements resource.Resource.
func (*Kubernetes) String ¶
func (r *Kubernetes) String() string
type KubernetesCertsSpec ¶
type KubernetesCertsSpec struct { APIServer *x509.PEMEncodedCertificateAndKey `yaml:"apiServer"` APIServerKubeletClient *x509.PEMEncodedCertificateAndKey `yaml:"apiServerKubeletClient"` FrontProxy *x509.PEMEncodedCertificateAndKey `yaml:"frontProxy"` AdminKubeconfig string `yaml:"adminKubeconfig"` }
KubernetesCertsSpec describes generated Kubernetes certificates.
type Root ¶
type Root struct {
// contains filtered or unexported fields
}
Root contains root (not generated) secrets.
func (*Root) KubernetesSpec ¶
func (r *Root) KubernetesSpec() *RootKubernetesSpec
KubernetesSpec returns .spec.
func (*Root) ResourceDefinition ¶
func (r *Root) ResourceDefinition() core.ResourceDefinitionSpec
ResourceDefinition implements core.ResourceDefinitionProvider interface.
type RootEtcdSpec ¶
type RootEtcdSpec struct {
EtcdCA *x509.PEMEncodedCertificateAndKey `yaml:"etcdCA"`
}
RootEtcdSpec describes etcd CA secrets.
type RootKubernetesSpec ¶
type RootKubernetesSpec struct { Name string `yaml:"name"` Endpoint *url.URL `yaml:"endpoint"` CertSANs []string `yaml:"certSANs"` APIServerIPs []net.IP `yaml:"apiServerIPs"` DNSDomain string `yaml:"dnsDomain"` CA *x509.PEMEncodedCertificateAndKey `yaml:"ca"` ServiceAccount *x509.PEMEncodedKey `yaml:"serviceAccount"` AggregatorCA *x509.PEMEncodedCertificateAndKey `yaml:"aggregatorCA"` AESCBCEncryptionSecret string `yaml:"aesCBCEncryptionSecret"` BootstrapTokenID string `yaml:"bootstrapTokenID"` BootstrapTokenSecret string `yaml:"bootstrapTokenSecret"` }
RootKubernetesSpec describes root Kubernetes secrets.