Documentation ¶
Index ¶
- Constants
- Variables
- type Interface
- func (k8s *Interface) GetNamespace(name string) (*core_api.Namespace, error)
- func (k8s *Interface) GetServiceAccount(name string, namespace string) (*core_api.ServiceAccount, error)
- func (k8s *Interface) MergeAnnotation(key string, metas ...*meta_api.ObjectMeta) []string
- func (k8s *Interface) NewReplicator() *Replicator
- func (k8s *Interface) SetConcreteRef(ref interface{})
- type Replicator
Constants ¶
View Source
const ReplicateKey string = "replicator.v1.mittwald.de/replicate-from"
Variables ¶
View Source
var ( PodsResource = core_api.SchemeGroupVersion.WithResource("pods") PodsKind = core_api.SchemeGroupVersion.WithKind("Pod") NamespacesResource = core_api.SchemeGroupVersion.WithResource("namespaces") NamespacesKind = core_api.SchemeGroupVersion.WithKind("Namespace") ServiceaccountsResource = core_api.SchemeGroupVersion.WithResource("serviceaccounts") ServiceaccountsKind = core_api.SchemeGroupVersion.WithKind("Serviceaccount") )
View Source
var (
SecretsResource = core_api.SchemeGroupVersion.WithResource("secrets")
)
Functions ¶
This section is empty.
Types ¶
type Interface ¶
type Interface struct { dynamic.Interface DefaultMeta *meta_api.ObjectMeta ConcreteRef interface{} }
Interface for interacting with kube resources
func (*Interface) GetNamespace ¶
func (*Interface) GetServiceAccount ¶
func (*Interface) MergeAnnotation ¶
func (k8s *Interface) MergeAnnotation(key string, metas ...*meta_api.ObjectMeta) []string
func (*Interface) NewReplicator ¶
func (k8s *Interface) NewReplicator() *Replicator
func (*Interface) SetConcreteRef ¶
func (k8s *Interface) SetConcreteRef(ref interface{})
type Replicator ¶
func (*Replicator) CreateReplicatedSecret ¶
func (*Replicator) UpdateReplicatedSecret ¶
Click to show internal directories.
Click to hide internal directories.