serviceaccount

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: 7 Imported by: 0

Documentation

Overview

Package serviceaccount manipulates the k8s api of serviceaccount object

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(*ServiceAccount)

Option configures an ServiceAccount

func WithCompleteParams

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

WithCompleteParams provides an Option

type ServiceAccount

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

ServiceAccount is the object to encapsulate secrets

func New

func New(options ...Option) *ServiceAccount

New news an ServiceAccount

func (*ServiceAccount) Create

func (s *ServiceAccount) Create(sa *apiv1.ServiceAccount) error

Create create a k8s serviceaccount

func (*ServiceAccount) Delete

func (s *ServiceAccount) Delete(namespace, name string) error

Delete deletes a k8s serviceaccount object

func (*ServiceAccount) Exists

func (s *ServiceAccount) Exists(namespace, name string) error

Exists decides whether a serviceaccount exists

func (*ServiceAccount) Get

func (s *ServiceAccount) Get(namespace, name string) (*apiv1.ServiceAccount, error)

Get gets a k8s serviceaccount

func (*ServiceAccount) Patch

func (s *ServiceAccount) Patch(sa *apiv1.ServiceAccount) error

Patch patches a k8s serviceaccount object

Jump to

Keyboard shortcuts

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