Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConsulResourceClientFactory ¶
func (*ConsulResourceClientFactory) NewResourceClient ¶
func (f *ConsulResourceClientFactory) NewResourceClient(ctx context.Context, params NewResourceClientParams) (clients.ResourceClient, error)
type FileResourceClientFactory ¶
type FileResourceClientFactory struct {
RootDir string
}
func (*FileResourceClientFactory) NewResourceClient ¶
func (f *FileResourceClientFactory) NewResourceClient(ctx context.Context, params NewResourceClientParams) (clients.ResourceClient, error)
type KubeConfigMapClientFactory ¶
type KubeConfigMapClientFactory struct { Clientset kubernetes.Interface Cache cache.KubeCoreCache // set this to true if resource fields are all strings // resources will be stored as plain kubernetes configmaps without serializing/deserializing as objects PlainConfigmaps bool // a custom handler to define how configmaps are serialized/deserialized out of resources // if set, Plain is ignored CustomConverter configmap.ConfigMapConverter // the cluster that these resources belong to // all resources written and read by the resource client // will be marked with this cluster Cluster string }
func (*KubeConfigMapClientFactory) NewResourceClient ¶
func (f *KubeConfigMapClientFactory) NewResourceClient(ctx context.Context, params NewResourceClientParams) (clients.ResourceClient, error)
type KubeResourceClientFactory ¶
type KubeResourceClientFactory struct { Crd crd.Crd Cfg *rest.Config SkipCrdCreation bool NamespaceWhitelist []string ResyncPeriod time.Duration // the cluster that these resources belong to // all resources written and read by the resource client // will be marked with this cluster Cluster string }
If SkipCrdCreation is set to 'true', the clients built with this factory will not attempt to create the given CRD during registration. This allows us to create and register resource clients in cases where the given configuration contains a token associated with a user that is not authorized to create CRDs. Clients built with this factory will be able to access only resources the given namespace list. If no value is provided, clients will be able to access resources in all namespaces.
func (*KubeResourceClientFactory) NewResourceClient ¶
func (f *KubeResourceClientFactory) NewResourceClient(ctx context.Context, params NewResourceClientParams) (clients.ResourceClient, error)
type KubeSecretClientFactory ¶
type KubeSecretClientFactory struct { Clientset kubernetes.Interface // set this to true if resource fields are all strings // resources will be stored as plain kubernetes secrets without serializing/deserializing as objects PlainSecrets bool SecretConverter kubesecret.SecretConverter Cache cache.KubeCoreCache // the cluster that these resources belong to // all resources written and read by the resource client // will be marked with this cluster Cluster string }
func (*KubeSecretClientFactory) NewResourceClient ¶
func (f *KubeSecretClientFactory) NewResourceClient(ctx context.Context, params NewResourceClientParams) (clients.ResourceClient, error)
type MemoryResourceClientFactory ¶
type MemoryResourceClientFactory struct {
Cache memory.InMemoryResourceCache
}
func (*MemoryResourceClientFactory) NewResourceClient ¶
func (f *MemoryResourceClientFactory) NewResourceClient(ctx context.Context, params NewResourceClientParams) (clients.ResourceClient, error)
type NewResourceClientParams ¶
type ResourceClientFactory ¶
type ResourceClientFactory interface {
NewResourceClient(ctx context.Context, params NewResourceClientParams) (clients.ResourceClient, error)
}
type VaultSecretClientFactory ¶
func (*VaultSecretClientFactory) NewResourceClient ¶
func (f *VaultSecretClientFactory) NewResourceClient(ctx context.Context, params NewResourceClientParams) (clients.ResourceClient, error)
Click to show internal directories.
Click to hide internal directories.