kube

package
v0.0.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client contains the Kubernetes client for connecting to the cluster hosting ArgoCD

func NewClient

func NewClient() (*Client, error)

NewClient returns a Client ready to call the local Kubernetes API

func (*Client) ReadSecret

func (c *Client) ReadSecret(name string) ([]byte, error)

ReadSecret reads the specified Secret from the defined namespace, otherwise defaults to `argocd` and returns a YAML []byte containing its data, decoded from base64

func (*Client) ReadSecretData

func (c *Client) ReadSecretData(name string) (map[string][]byte, error)

ReadSecretData reads the specified Secret from the defined namespace, otherwise defaults to `argocd` and returns map[string][]byte containing its data

Jump to

Keyboard shortcuts

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