serviceaccount

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2021 License: AGPL-3.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