secret

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2021 License: BSD-3-Clause Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SecretsService

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

func NewSecretsService

func NewSecretsService(client core.SecretInterface, helper kubernetes.Kubernetes, configuration ServiceConfiguration) SecretsService

NewSecretsService creates a new Service instance

func (SecretsService) Delete

func (ss SecretsService) Delete(ctx context.Context, secrets []v1.Secret) error

func (SecretsService) FilterByMaxCount

func (ss SecretsService) FilterByMaxCount(secrets []v1.Secret, keep int) (filteredResources []v1.Secret)

func (SecretsService) FilterByTime

func (ss SecretsService) FilterByTime(secrets []v1.Secret, olderThan time.Time) (filteredResources []v1.Secret)

func (SecretsService) GetUnused

func (ss SecretsService) GetUnused(ctx context.Context, namespace string, resources []v1.Secret) (unusedResources []v1.Secret, funcErr error)

func (SecretsService) List

func (ss SecretsService) List(ctx context.Context, listOptions metav1.ListOptions) ([]v1.Secret, error)

func (SecretsService) Print

func (ss SecretsService) Print(resources []v1.Secret)

type ServiceConfiguration

type ServiceConfiguration struct {
	Batch bool
}

Jump to

Keyboard shortcuts

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