k8s

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2023 License: MIT Imports: 11 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
}

func NewClient

func NewClient(logger *slog.Logger, config Kubeconfig) (Client, error)

func (Client) ListIAMServiceAccounts

func (c Client) ListIAMServiceAccounts(namespace, labelSelector, fieldSelector string) ([]ServiceAccount, error)

type Kubeconfig

type Kubeconfig struct {
	RestConfig  *rest.Config
	ClusterName string
	Region      string
	Profile     string
}

func NewKubeconfig

func NewKubeconfig(kubeconfigPath string) (Kubeconfig, error)

func (Kubeconfig) String

func (k Kubeconfig) String() string

type ServiceAccount

type ServiceAccount struct {
	Name       string
	Namespace  string
	IamRoleArn string
	Pods       []string
}

func (ServiceAccount) RoleAccount

func (s ServiceAccount) RoleAccount() string

func (ServiceAccount) RoleName

func (s ServiceAccount) RoleName() string

Jump to

Keyboard shortcuts

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