Documentation ¶
Index ¶
- func NewStore(reader kube_client.Reader, writer kube_client.Writer, namespace string) (secret_store.SecretStore, error)
- type Converter
- type KubernetesMetaAdapter
- func (m *KubernetesMetaAdapter) GetCreationTime() time.Time
- func (m *KubernetesMetaAdapter) GetMesh() string
- func (m *KubernetesMetaAdapter) GetModificationTime() time.Time
- func (m *KubernetesMetaAdapter) GetNameExtensions() core_model.ResourceNameExtensions
- func (m *KubernetesMetaAdapter) GetVersion() string
- type KubernetesStore
- func (s *KubernetesStore) Create(ctx context.Context, r *secret_model.SecretResource, ...) error
- func (s *KubernetesStore) Delete(ctx context.Context, r *secret_model.SecretResource, ...) error
- func (s *KubernetesStore) Get(ctx context.Context, r *secret_model.SecretResource, ...) error
- func (s *KubernetesStore) List(ctx context.Context, rs *secret_model.SecretResourceList, ...) error
- func (s *KubernetesStore) Update(ctx context.Context, r *secret_model.SecretResource, ...) error
- type SimpleConverter
- func (c *SimpleConverter) ToCoreList(in *kube_core.SecretList, out *secret_model.SecretResourceList) error
- func (c *SimpleConverter) ToCoreResource(secret *kube_core.Secret, out *secret_model.SecretResource) error
- func (c *SimpleConverter) ToKubernetesObject(r *secret_model.SecretResource) (*kube_core.Secret, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewStore ¶
func NewStore(reader kube_client.Reader, writer kube_client.Writer, namespace string) (secret_store.SecretStore, error)
Types ¶
type Converter ¶
type Converter interface { ToKubernetesObject(*secret_model.SecretResource) (*kube_core.Secret, error) ToCoreResource(secret *kube_core.Secret, out *secret_model.SecretResource) error ToCoreList(list *kube_core.SecretList, out *secret_model.SecretResourceList) error }
func DefaultConverter ¶
func DefaultConverter() Converter
type KubernetesMetaAdapter ¶
type KubernetesMetaAdapter struct {
kube_meta.ObjectMeta
}
func (*KubernetesMetaAdapter) GetCreationTime ¶
func (m *KubernetesMetaAdapter) GetCreationTime() time.Time
func (*KubernetesMetaAdapter) GetMesh ¶
func (m *KubernetesMetaAdapter) GetMesh() string
func (*KubernetesMetaAdapter) GetModificationTime ¶
func (m *KubernetesMetaAdapter) GetModificationTime() time.Time
func (*KubernetesMetaAdapter) GetNameExtensions ¶
func (m *KubernetesMetaAdapter) GetNameExtensions() core_model.ResourceNameExtensions
func (*KubernetesMetaAdapter) GetVersion ¶
func (m *KubernetesMetaAdapter) GetVersion() string
type KubernetesStore ¶
type KubernetesStore struct {
// contains filtered or unexported fields
}
func (*KubernetesStore) Create ¶
func (s *KubernetesStore) Create(ctx context.Context, r *secret_model.SecretResource, fs ...core_store.CreateOptionsFunc) error
func (*KubernetesStore) Delete ¶
func (s *KubernetesStore) Delete(ctx context.Context, r *secret_model.SecretResource, fs ...core_store.DeleteOptionsFunc) error
func (*KubernetesStore) Get ¶
func (s *KubernetesStore) Get(ctx context.Context, r *secret_model.SecretResource, fs ...core_store.GetOptionsFunc) error
func (*KubernetesStore) List ¶
func (s *KubernetesStore) List(ctx context.Context, rs *secret_model.SecretResourceList, fs ...core_store.ListOptionsFunc) error
func (*KubernetesStore) Update ¶
func (s *KubernetesStore) Update(ctx context.Context, r *secret_model.SecretResource, fs ...core_store.UpdateOptionsFunc) error
type SimpleConverter ¶
type SimpleConverter struct { }
func (*SimpleConverter) ToCoreList ¶
func (c *SimpleConverter) ToCoreList(in *kube_core.SecretList, out *secret_model.SecretResourceList) error
func (*SimpleConverter) ToCoreResource ¶
func (c *SimpleConverter) ToCoreResource(secret *kube_core.Secret, out *secret_model.SecretResource) error
func (*SimpleConverter) ToKubernetesObject ¶
func (c *SimpleConverter) ToKubernetesObject(r *secret_model.SecretResource) (*kube_core.Secret, error)
Click to show internal directories.
Click to hide internal directories.