stub

package
v0.0.0-...-bf90f01 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2020 License: Apache-2.0 Imports: 8 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthService

type AuthService struct {
	TenantID           uuid.UUID
	OpenShiftUsername  string
	OpenShiftUserToken string
	ClusterURL         string
}

func (*AuthService) GetAuthURL

func (s *AuthService) GetAuthURL() string

func (*AuthService) GetPublicKeys

func (s *AuthService) GetPublicKeys() ([]*rsa.PublicKey, error)

func (*AuthService) GetUser

func (s *AuthService) GetUser(ctx context.Context) (*auth.User, error)

func (*AuthService) NewSaClient

func (s *AuthService) NewSaClient() (*authclient.Client, error)

func (*AuthService) ResolveSaToken

func (s *AuthService) ResolveSaToken(ctx context.Context, target string) (username, accessToken string, err error)

func (*AuthService) ResolveUserToken

func (s *AuthService) ResolveUserToken(ctx context.Context, target, userToken string) (user, accessToken string, err error)

type ClusterService

type ClusterService struct {
	APIURL string
	User   string
	Token  string
}

func (*ClusterService) GetCluster

func (s *ClusterService) GetCluster(ctx context.Context, target string) (cluster.Cluster, error)

func (*ClusterService) GetClusters

func (s *ClusterService) GetClusters(ctx context.Context) []cluster.Cluster

func (*ClusterService) GetUserClusterForType

func (s *ClusterService) GetUserClusterForType(ctx context.Context, user *auth.User) (cluster.ForType, error)

func (*ClusterService) Start

func (s *ClusterService) Start() error

func (*ClusterService) Stop

func (s *ClusterService) Stop()

Jump to

Keyboard shortcuts

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