Documentation ¶
Index ¶
- Constants
- func NewSecretProvider(k8sClient *k8s_utils.KubernetesClient, optionalArgs ...map[string]string) (sp.SecretProviderInterface, error)
- type ManagedSecretProvider
- func (msp *ManagedSecretProvider) GetContainerAPIRoute(readConfig bool) (string, error)
- func (msp *ManagedSecretProvider) GetDefaultIAMToken(freshTokenRequired bool, reasonForCall ...string) (string, uint64, error)
- func (msp *ManagedSecretProvider) GetIAMToken(secret string, freshTokenRequired bool, reasonForCall ...string) (string, uint64, error)
- func (msp *ManagedSecretProvider) GetPrivateContainerAPIRoute(readConfig bool) (string, error)
- func (msp *ManagedSecretProvider) GetPrivateRIAASEndpoint(readConfig bool) (string, error)
- func (msp *ManagedSecretProvider) GetRIAASEndpoint(readConfig bool) (string, error)
- func (msp *ManagedSecretProvider) GetResourceGroupID() string
- type UnmanagedSecretProvider
- func (usp *UnmanagedSecretProvider) GetContainerAPIRoute(readConfig bool) (string, error)
- func (usp *UnmanagedSecretProvider) GetDefaultIAMToken(isFreshTokenRequired bool, reasonForCall ...string) (string, uint64, error)
- func (usp *UnmanagedSecretProvider) GetIAMToken(secret string, isFreshTokenRequired bool, reasonForCall ...string) (string, uint64, error)
- func (usp *UnmanagedSecretProvider) GetPrivateContainerAPIRoute(readConfig bool) (string, error)
- func (usp *UnmanagedSecretProvider) GetPrivateRIAASEndpoint(readConfig bool) (string, error)
- func (usp *UnmanagedSecretProvider) GetRIAASEndpoint(readConfig bool) (string, error)
- func (usp *UnmanagedSecretProvider) GetResourceGroupID() string
Constants ¶
Variables ¶
This section is empty.
Functions ¶
func NewSecretProvider ¶
func NewSecretProvider(k8sClient *k8s_utils.KubernetesClient, optionalArgs ...map[string]string) (sp.SecretProviderInterface, error)
NewSecretProvider initializes new secret provider argument1: k8sClient - this is the k8s client which holds k8s clientset and namespace which the client code must pass, if they are intending to use only unmanaged secret provider. argument2: optionalArgs - in this map, two keys can be provided - 1. 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. and 2. SecretKey which is given, when different keys other than the default needs to be referred. (Defaults are slclient.toml in storage-secret-store, ibm-credetentials.env in ibm-cloud-credentials.)
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 ...