clientcert

package
v1.60.0 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsInvalidConfig

func IsInvalidConfig(err error) bool

IsInvalidConfig asserts invalidConfigError.

func IsNotFound

func IsNotFound(err error) bool

IsNotFound asserts notFoundError.

Types

type ClientCert

type ClientCert struct {
	CertConfig *corev1alpha1.CertConfig
}

func (*ClientCert) Object

func (k *ClientCert) Object() runtime.Object

type Collection

type Collection struct {
	Items []ClientCert
}

func (*Collection) Object

func (c *Collection) Object() runtime.Object

type Config

type Config struct {
	Client *client.Client
}

type Interface

type Interface interface {
	Create(ctx context.Context, clientCert *ClientCert) error
	Delete(ctx context.Context, clientCert *ClientCert) error
	GetCredential(ctx context.Context, namespace, name string) (*corev1.Secret, error)
}

type Resource

type Resource interface {
	Object() runtime.Object
}

type Service

type Service struct {
	// contains filtered or unexported fields
}

func New

func New(config Config) (*Service, error)

func (*Service) Create

func (s *Service) Create(ctx context.Context, clientCert *ClientCert) error

func (*Service) Delete

func (s *Service) Delete(ctx context.Context, clientCert *ClientCert) error

func (*Service) GetCredential

func (s *Service) GetCredential(ctx context.Context, namespace, name string) (*corev1.Secret, error)

Jump to

Keyboard shortcuts

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