 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
- func Clients(config restclient.Config, tokenRetriever TokenRetriever, ...) (*restclient.Config, *client.Client, *kclient.Client, *kclientset.Clientset, ...)
- func IsValidServiceAccountToken(serviceAccount *kapi.ServiceAccount, secret *kapi.Secret) bool
- type ClientLookupTokenRetriever
- type TokenRetriever
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, *kclient.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
       Source Files
      ¶
      Source Files
      ¶
    
- client.go
 Click to show internal directories. 
   Click to hide internal directories.