clientcert

package
v2.53.0 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 8 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() client.Object

type Collection

type Collection struct {
	Items []ClientCert
}

func (*Collection) Object

func (c *Collection) Object() client.ObjectList

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() client.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