secret

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package secret manipulates the k8s api of secret object

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(*Secret)

Option configures an Secret

func WithCompleteParams

func WithCompleteParams(addr string, client *httpclient.HTTPClient) Option

WithCompleteParams provides an Option

type Secret

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

Secret is the object to encapsulate docker

func New

func New(options ...Option) *Secret

New news an Secret

func (*Secret) Create

func (p *Secret) Create(secret *apiv1.Secret) error

Create creates a k8s ingress object

func (*Secret) CreateIfNotExist

func (p *Secret) CreateIfNotExist(secret *apiv1.Secret) error

func (*Secret) Get

func (p *Secret) Get(namespace, name string) (*apiv1.Secret, error)

Get gets a k8s secret

func (*Secret) List

func (p *Secret) List(namespace string) (*apiv1.SecretList, error)

List list k8s secrets in 'namespace'

Jump to

Keyboard shortcuts

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