authenticator

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package authenticator ...

Index

Constants

View Source
const (
	ProviderType string = "ProviderType"
	SecretKey    string = "SecretKey"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type APIKeyAuthenticator

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

APIKeyAuthenticator ...

func NewIamAuthenticator

func NewIamAuthenticator(apikey string, logger *zap.Logger) *APIKeyAuthenticator

NewIamAuthenticator ...

func (*APIKeyAuthenticator) GetSecret

func (aa *APIKeyAuthenticator) GetSecret() string

GetSecret ...

func (*APIKeyAuthenticator) GetToken

func (aa *APIKeyAuthenticator) GetToken(freshTokenRequired bool) (string, uint64, error)

GetToken ...

func (*APIKeyAuthenticator) IsSecretEncrypted

func (aa *APIKeyAuthenticator) IsSecretEncrypted() bool

IsSecretEncrypted ...

func (*APIKeyAuthenticator) SetEncryption

func (aa *APIKeyAuthenticator) SetEncryption(encrypted bool)

SetEncryption ...

func (*APIKeyAuthenticator) SetSecret

func (aa *APIKeyAuthenticator) SetSecret(secret string)

SetSecret ...

func (*APIKeyAuthenticator) SetURL

func (aa *APIKeyAuthenticator) SetURL(url string)

SetURL ...

type Authenticator

type Authenticator interface {
	GetToken(freshTokenRequired bool) (string, uint64, error)
	GetSecret() string
	SetSecret(secret string)
	SetURL(url string)
	SetEncryption(bool)
	IsSecretEncrypted() bool
	// contains filtered or unexported methods
}

Authenticator ...

func NewAuthenticator

func NewAuthenticator(logger *zap.Logger, kc k8s_utils.KubernetesClient, optionalArgs ...map[string]string) (Authenticator, string, error)

NewAuthenticator initializes the particular authenticator based on the configuration provided.

type ComputeIdentityAuthenticator

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

ComputeIdentityAuthenticator ...

func NewComputeIdentityAuthenticator

func NewComputeIdentityAuthenticator(profileID string, logger *zap.Logger) *ComputeIdentityAuthenticator

NewComputeIdentityAuthenticator ...

func (*ComputeIdentityAuthenticator) GetSecret

func (ca *ComputeIdentityAuthenticator) GetSecret() string

GetSecret ...

func (*ComputeIdentityAuthenticator) GetToken

func (ca *ComputeIdentityAuthenticator) GetToken(freshTokenRequired bool) (string, uint64, error)

GetToken ...

func (*ComputeIdentityAuthenticator) IsSecretEncrypted

func (ca *ComputeIdentityAuthenticator) IsSecretEncrypted() bool

IsSecretEncrypted ...

func (*ComputeIdentityAuthenticator) SetEncryption

func (ca *ComputeIdentityAuthenticator) SetEncryption(encrypted bool)

SetEncryption ...

func (*ComputeIdentityAuthenticator) SetSecret

func (ca *ComputeIdentityAuthenticator) SetSecret(secret string)

SetSecret ...

func (*ComputeIdentityAuthenticator) SetURL

func (ca *ComputeIdentityAuthenticator) SetURL(url string)

SetURL ...

type FakeAuthenticator

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

func NewFakeAuthenticator

func NewFakeAuthenticator(logger *zap.Logger) *FakeAuthenticator

func (*FakeAuthenticator) GetSecret

func (fa *FakeAuthenticator) GetSecret() string

GetSecret ...

func (*FakeAuthenticator) GetToken

func (fa *FakeAuthenticator) GetToken(freshTokenRequired bool) (string, uint64, error)

GetToken ...

func (*FakeAuthenticator) IsSecretEncrypted

func (fa *FakeAuthenticator) IsSecretEncrypted() bool

IsSecretEncrypted ...

func (*FakeAuthenticator) SetEncryption

func (fa *FakeAuthenticator) SetEncryption(encrypted bool)

SetEncryption ...

func (*FakeAuthenticator) SetSecret

func (fa *FakeAuthenticator) SetSecret(secret string)

SetSecret ...

func (*FakeAuthenticator) SetURL

func (fa *FakeAuthenticator) SetURL(url string)

SetURL ...

Jump to

Keyboard shortcuts

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