Documentation ¶
Index ¶
- func GetCatalogServerService(k8sclient client.Client, deployedNamespace string) (*corev1.Service, error)
- func GetCertFromConfigMap(k8sclient client.Client, deployedNamespace string, reqLogger logr.Logger) ([]byte, error)
- func SetTransportForKubeServiceAuth(authBuilder IAuthBuilder, reqLogger logr.Logger) (*http.Client, error)
- func WithBearerAuth(rt http.RoundTripper, token string) http.RoundTripper
- type AuthBuilderConfig
- type AuthValues
- type IAuthBuilder
- type ServiceAccountClient
- type Token
- type TransportWithHeader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCatalogServerService ¶
func GetCertFromConfigMap ¶
func WithBearerAuth ¶
func WithBearerAuth(rt http.RoundTripper, token string) http.RoundTripper
Types ¶
type AuthBuilderConfig ¶
type AuthBuilderConfig struct { K8sclient client.Client DeployedNamespace string *ServiceAccountClient Logger logr.Logger *AuthValues Error error }
func ProvideAuthBuilder ¶
func ProvideAuthBuilder(k8sclient client.Client, operatorConfig *config.OperatorConfig, kubeInterface kubernetes.Interface, reqLogger logr.Logger) *AuthBuilderConfig
func (*AuthBuilderConfig) FindAuthOffCluster ¶
func (a *AuthBuilderConfig) FindAuthOffCluster() (*AuthValues, error)
type AuthValues ¶
type IAuthBuilder ¶
type IAuthBuilder interface {
FindAuthOffCluster() (*AuthValues, error)
}
type ServiceAccountClient ¶
type ServiceAccountClient struct { KubernetesInterface kubernetes.Interface Token *Token TokenRequestObj *authv1.TokenRequest Client typedv1.ServiceAccountInterface sync.Mutex }
func ProvideServiceAccountClient ¶
func ProvideServiceAccountClient(namespace string, kubernetesInterface kubernetes.Interface) *ServiceAccountClient
func (*ServiceAccountClient) GetToken ¶
func (s *ServiceAccountClient) GetToken(targetServiceAccount string, client typedv1.ServiceAccountInterface, tr *authv1.TokenRequest, opts metav1.CreateOptions) (string, error)
func (*ServiceAccountClient) NewServiceAccountToken ¶
type TransportWithHeader ¶
func WithHeader ¶
func WithHeader(rt http.RoundTripper) TransportWithHeader
Click to show internal directories.
Click to hide internal directories.