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)
Click to show internal directories.
Click to hide internal directories.