Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Clients ¶
func Clients(config restclient.Config, tokenRetriever TokenRetriever, namespace, name string) (*restclient.Config, *client.Client, *kclientset.Clientset, error)
Clients returns an OpenShift and Kubernetes client with the credentials of the named service account TODO: change return types to client.Interface/kclientset.Interface to allow auto-reloading credentials
Types ¶
type ClientLookupTokenRetriever ¶
type ClientLookupTokenRetriever struct {
Client kclientset.Interface
}
ClientLookupTokenRetriever uses its client to look up a service account token
func (*ClientLookupTokenRetriever) GetToken ¶
func (s *ClientLookupTokenRetriever) GetToken(namespace, name string) (string, error)
GetToken returns a token for the named service account or an error if none existed after a timeout
Click to show internal directories.
Click to hide internal directories.