kubernetes

package
v0.5.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 22, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseClient

type BaseClient struct {
	Certificate []byte
	Key         []byte
	CA          []byte
	BearerToken []byte
	// contains filtered or unexported fields
}

type KClient

type KClient interface {
	Get(ctx context.Context, name string, opts metav1.GetOptions) (*corev1.Secret, error)
	List(ctx context.Context, opts metav1.ListOptions) (*corev1.SecretList, error)
}

type ProviderKubernetes

type ProviderKubernetes struct {
	Client       KClient
	ReviewClient RClient
	Namespace    string
	// contains filtered or unexported fields
}

ProviderKubernetes is a provider for Kubernetes.

func (*ProviderKubernetes) Close

func (p *ProviderKubernetes) Close(ctx context.Context) error

func (*ProviderKubernetes) GetAllSecrets

func (p *ProviderKubernetes) GetAllSecrets(ctx context.Context, ref esv1beta1.ExternalSecretFind) (map[string][]byte, error)

func (*ProviderKubernetes) GetSecret

func (*ProviderKubernetes) GetSecretMap

func (*ProviderKubernetes) NewClient

NewClient constructs a Kubernetes Provider.

func (*ProviderKubernetes) Validate

func (*ProviderKubernetes) ValidateStore

func (p *ProviderKubernetes) ValidateStore(store esv1beta1.GenericStore) error

type RClient

type RClient interface {
	Create(ctx context.Context, selfSubjectRulesReview *authv1.SelfSubjectRulesReview, opts metav1.CreateOptions) (*authv1.SelfSubjectRulesReview, error)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL