authorizer

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2019 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetClientFromConfig

func GetClientFromConfig(config []byte) (client.Client, error)

Types

type Authorizer

type Authorizer interface {
	GetKubeConfig(*clusterv1alpha1.EKS) ([]byte, error)
	GetClient(*clusterv1alpha1.EKS) (client.Client, error)
}

type EKSAuthorizer

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

func NewEks

func NewEks(rootSession *session.Session, log *zap.Logger) *EKSAuthorizer

func (*EKSAuthorizer) GetClient

func (e *EKSAuthorizer) GetClient(eksCluster *clusterv1alpha1.EKS) (client.Client, error)

func (*EKSAuthorizer) GetKubeConfig

func (e *EKSAuthorizer) GetKubeConfig(eksCluster *clusterv1alpha1.EKS) ([]byte, error)

type FakeAuthorizer

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

func NewFake

func NewFake(c client.Client) *FakeAuthorizer

func (*FakeAuthorizer) GetClient

func (f *FakeAuthorizer) GetClient(e *clusterv1alpha1.EKS) (client.Client, error)

func (*FakeAuthorizer) GetKubeConfig

func (f *FakeAuthorizer) GetKubeConfig(e *clusterv1alpha1.EKS) ([]byte, error)

Jump to

Keyboard shortcuts

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