secret_provider

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2022 License: Apache-2.0 Imports: 18 Imported by: 3

Documentation

Index

Constants

View Source
const (
	ProviderType string = "ProviderType"
	SecretKey    string = "SecretKey"
	VPC          string = "vpc"
	Bluemix      string = "bluemix"
	Softlayer    string = "softlayer"
)

Variables

This section is empty.

Functions

func NewSecretProvider

func NewSecretProvider(optionalArgs ...map[string]string) (sp.SecretProviderInterface, error)

NewSecretProvider initializes new secret provider Note: providerType which can be VPC, Bluemix, Softlayer (the constants defined above) and is only used when we need to read storage-secret-store, this is kept to support backward compatibility.

Types

type ManagedSecretProvider

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

ManagedSecretProvider ...

func (*ManagedSecretProvider) GetContainerAPIRoute added in v1.0.4

func (msp *ManagedSecretProvider) GetContainerAPIRoute(readConfig bool) (string, error)

GetContainerAPIRoute ...

func (*ManagedSecretProvider) GetDefaultIAMToken

func (msp *ManagedSecretProvider) GetDefaultIAMToken(freshTokenRequired bool, reasonForCall ...string) (string, uint64, error)

GetDefaultIAMToken ...

func (*ManagedSecretProvider) GetIAMToken

func (msp *ManagedSecretProvider) GetIAMToken(secret string, freshTokenRequired bool, reasonForCall ...string) (string, uint64, error)

GetIAMToken ...

func (*ManagedSecretProvider) GetPrivateContainerAPIRoute added in v1.0.4

func (msp *ManagedSecretProvider) GetPrivateContainerAPIRoute(readConfig bool) (string, error)

GetPrivateContainerAPIRoute ...

func (*ManagedSecretProvider) GetPrivateRIAASEndpoint added in v1.0.4

func (msp *ManagedSecretProvider) GetPrivateRIAASEndpoint(readConfig bool) (string, error)

GetPrivateRIAASEndpoint ...

func (*ManagedSecretProvider) GetRIAASEndpoint added in v1.0.4

func (msp *ManagedSecretProvider) GetRIAASEndpoint(readConfig bool) (string, error)

GetRIAASEndpoint ...

func (*ManagedSecretProvider) GetResourceGroupID added in v1.0.4

func (msp *ManagedSecretProvider) GetResourceGroupID() string

GetResourceGroupID ...

type UnmanagedSecretProvider

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

UnmanagedSecretProvider ...

func InitUnmanagedSecretProvider added in v1.0.4

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

initUnmanagedSecretProvider ...

func (*UnmanagedSecretProvider) GetContainerAPIRoute added in v1.0.4

func (usp *UnmanagedSecretProvider) GetContainerAPIRoute(readConfig bool) (string, error)

GetContainerAPIRoute ...

func (*UnmanagedSecretProvider) GetDefaultIAMToken

func (usp *UnmanagedSecretProvider) GetDefaultIAMToken(isFreshTokenRequired bool, reasonForCall ...string) (string, uint64, error)

GetDefaultIAMToken ...

func (*UnmanagedSecretProvider) GetIAMToken

func (usp *UnmanagedSecretProvider) GetIAMToken(secret string, isFreshTokenRequired bool, reasonForCall ...string) (string, uint64, error)

GetIAMToken ...

func (*UnmanagedSecretProvider) GetPrivateContainerAPIRoute added in v1.0.4

func (usp *UnmanagedSecretProvider) GetPrivateContainerAPIRoute(readConfig bool) (string, error)

GetPrivateContainerAPIRoute ...

func (*UnmanagedSecretProvider) GetPrivateRIAASEndpoint added in v1.0.4

func (usp *UnmanagedSecretProvider) GetPrivateRIAASEndpoint(readConfig bool) (string, error)

GetPrivateRIAASEndpoint ...

func (*UnmanagedSecretProvider) GetRIAASEndpoint added in v1.0.4

func (usp *UnmanagedSecretProvider) GetRIAASEndpoint(readConfig bool) (string, error)

GetRIAASEndpoint ...

func (*UnmanagedSecretProvider) GetResourceGroupID added in v1.0.4

func (usp *UnmanagedSecretProvider) GetResourceGroupID() string

GetResourceGroupID ...

Jump to

Keyboard shortcuts

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