cloud

package
v0.23.8 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EksClient

type EksClient interface {
	DescribeCluster(ctx context.Context, name string) (*eks.Cluster, error)
	ListClusters(ctx context.Context, fn func(*eks.ListClustersOutput)) error
	Token(ctx context.Context, name string) (token.Token, error)
}

func NewEksClient

func NewEksClient(region string, creds *credentials.Credentials) (EksClient, error)

func NewEksClientFromSession

func NewEksClientFromSession(sess *session.Session) EksClient

Construct client from preconfigured session.

type GkeClient

type GkeClient interface {
	Token(ctx context.Context) (*oauth2.Token, error)
	ListClusters(ctx context.Context) ([]*containerpb.Cluster, error)
}

func NewGkeClient

func NewGkeClient(ctx context.Context, projectId string) (GkeClient, error)

Directories

Path Synopsis
Package mock_cloud is a generated GoMock package.
Package mock_cloud is a generated GoMock package.

Jump to

Keyboard shortcuts

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