client

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: May 27, 2022 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BindSecret

func BindSecret(
	client pb.KISSClient,
	timeout time.Duration,
	namespace, name, serviceAccountName string,
)

func CreateSecret

func CreateSecret(client pb.KISSClient, timeout time.Duration, namespace, name, value string)

func CreateSecretIAMPolicy

func CreateSecretIAMPolicy(client pb.KISSClient, timeout time.Duration, namespace, name string)

func DeleteSecret

func DeleteSecret(client pb.KISSClient, timeout time.Duration, namespace, name string)

func DeleteSecretIAMPolicy

func DeleteSecretIAMPolicy(client pb.KISSClient, timeout time.Duration, namespace, name string)

func GetConnection

func GetConnection(
	secure bool,
	serverAddr string,
	timeout time.Duration,
	accessToken string,
) (*grpc.ClientConn, error)

Run starts the client and executes forever until terminated

func ListSecrets

func ListSecrets(client pb.KISSClient, timeout time.Duration, namespace string) []string

func LoadToken

func LoadToken(tokenPath *string) (*string, error)

func Ping

func Ping(client pb.KISSClient, timeout time.Duration, namespace string)

Temporary test function to test gRPC authorization.

func UpdateSecret

func UpdateSecret(client pb.KISSClient, timeout time.Duration, namespace, name, value string)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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