Documentation
¶
Index ¶
- type APIError
- type Auth
- func (a *Auth) AwsIamAuthLogin(identityId string) (credential MachineIdentityCredential, err error)
- func (a *Auth) AzureAuthLogin(identityID string) (credential MachineIdentityCredential, err error)
- func (a *Auth) GcpIamAuthLogin(identityID string, serviceAccountKeyFilePath string) (credential MachineIdentityCredential, err error)
- func (a *Auth) GcpIdTokenAuthLogin(identityID string) (credential MachineIdentityCredential, err error)
- func (a *Auth) KubernetesAuthLogin(identityID string, serviceAccountTokenPath string) (credential MachineIdentityCredential, err error)
- func (a *Auth) KubernetesRawServiceAccountTokenLogin(identityID string, serviceAccountToken string) (credential MachineIdentityCredential, err error)
- func (a *Auth) OidcAuthLogin(identityId string, jwt string) (credential MachineIdentityCredential, err error)
- func (a *Auth) SetAccessToken(accessToken string)
- func (a *Auth) UniversalAuthLogin(clientID string, clientSecret string) (credential MachineIdentityCredential, err error)
- type AuthInterface
- type Config
- type CreateFolderOptions
- type CreateSecretOptions
- type DeleteFolderOptions
- type DeleteSecretOptions
- type Folders
- func (f *Folders) Create(options CreateFolderOptions) (models.Folder, error)
- func (f *Folders) Delete(options DeleteFolderOptions) (models.Folder, error)
- func (f *Folders) List(options ListFoldersOptions) ([]models.Folder, error)
- func (f *Folders) Update(options UpdateFolderOptions) (models.Folder, error)
- type FoldersInterface
- type InfisicalClient
- type InfisicalClientInterface
- type KubernetesAuthLoginOptions
- type ListFoldersOptions
- type ListSecretsOptions
- type MachineIdentityCredential
- type RequestError
- type RetrieveSecretOptions
- type Secret
- type SecretImport
- type Secrets
- func (s *Secrets) Create(options CreateSecretOptions) (models.Secret, error)
- func (s *Secrets) Delete(options DeleteSecretOptions) (models.Secret, error)
- func (s *Secrets) List(options ListSecretsOptions) ([]models.Secret, error)
- func (s *Secrets) Retrieve(options RetrieveSecretOptions) (models.Secret, error)
- func (s *Secrets) Update(options UpdateSecretOptions) (models.Secret, error)
- type SecretsInterface
- type UpdateFolderOptions
- type UpdateSecretOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Auth ¶
type Auth struct {
// contains filtered or unexported fields
}
func (*Auth) AwsIamAuthLogin ¶
func (a *Auth) AwsIamAuthLogin(identityId string) (credential MachineIdentityCredential, err error)
func (*Auth) AzureAuthLogin ¶
func (a *Auth) AzureAuthLogin(identityID string) (credential MachineIdentityCredential, err error)
func (*Auth) GcpIamAuthLogin ¶
func (a *Auth) GcpIamAuthLogin(identityID string, serviceAccountKeyFilePath string) (credential MachineIdentityCredential, err error)
func (*Auth) GcpIdTokenAuthLogin ¶
func (a *Auth) GcpIdTokenAuthLogin(identityID string) (credential MachineIdentityCredential, err error)
func (*Auth) KubernetesAuthLogin ¶
func (a *Auth) KubernetesAuthLogin(identityID string, serviceAccountTokenPath string) (credential MachineIdentityCredential, err error)
func (*Auth) KubernetesRawServiceAccountTokenLogin ¶ added in v0.1.8
func (a *Auth) KubernetesRawServiceAccountTokenLogin(identityID string, serviceAccountToken string) (credential MachineIdentityCredential, err error)
func (*Auth) OidcAuthLogin ¶ added in v0.3.0
func (a *Auth) OidcAuthLogin(identityId string, jwt string) (credential MachineIdentityCredential, err error)
func (*Auth) SetAccessToken ¶
func (*Auth) UniversalAuthLogin ¶
func (a *Auth) UniversalAuthLogin(clientID string, clientSecret string) (credential MachineIdentityCredential, err error)
type AuthInterface ¶
type AuthInterface interface {
SetAccessToken(accessToken string)
UniversalAuthLogin(clientID string, clientSecret string) (credential MachineIdentityCredential, err error)
KubernetesAuthLogin(identityID string, serviceAccountTokenPath string) (credential MachineIdentityCredential, err error)
KubernetesRawServiceAccountTokenLogin(identityID string, serviceAccountToken string) (credential MachineIdentityCredential, err error)
AzureAuthLogin(identityID string) (credential MachineIdentityCredential, err error)
GcpIdTokenAuthLogin(identityID string) (credential MachineIdentityCredential, err error)
GcpIamAuthLogin(identityID string, serviceAccountKeyFilePath string) (credential MachineIdentityCredential, err error)
AwsIamAuthLogin(identityId string) (credential MachineIdentityCredential, err error)
OidcAuthLogin(identityId string, jwt string) (credential MachineIdentityCredential, err error)
}
func NewAuth ¶
func NewAuth(client *InfisicalClient) AuthInterface
type CreateFolderOptions ¶ added in v0.1.6
type CreateFolderOptions = api.CreateFolderV1Request
type CreateSecretOptions ¶
type CreateSecretOptions = api.CreateSecretV3RawRequest
type DeleteFolderOptions ¶ added in v0.1.6
type DeleteFolderOptions = api.DeleteFolderV1Request
type DeleteSecretOptions ¶
type DeleteSecretOptions = api.DeleteSecretV3RawRequest
type Folders ¶ added in v0.1.6
type Folders struct {
// contains filtered or unexported fields
}
func (*Folders) Create ¶ added in v0.1.6
func (f *Folders) Create(options CreateFolderOptions) (models.Folder, error)
func (*Folders) Delete ¶ added in v0.1.6
func (f *Folders) Delete(options DeleteFolderOptions) (models.Folder, error)
type FoldersInterface ¶ added in v0.1.6
type FoldersInterface interface {
List(options ListFoldersOptions) ([]models.Folder, error)
Update(options UpdateFolderOptions) (models.Folder, error)
Create(options CreateFolderOptions) (models.Folder, error)
Delete(options DeleteFolderOptions) (models.Folder, error)
}
func NewFolders ¶ added in v0.1.6
func NewFolders(client *InfisicalClient) FoldersInterface
type InfisicalClient ¶
type InfisicalClient struct {
// contains filtered or unexported fields
}
func (*InfisicalClient) Auth ¶
func (c *InfisicalClient) Auth() AuthInterface
func (*InfisicalClient) Folders ¶ added in v0.1.6
func (c *InfisicalClient) Folders() FoldersInterface
func (*InfisicalClient) Secrets ¶
func (c *InfisicalClient) Secrets() SecretsInterface
func (*InfisicalClient) UpdateConfiguration ¶
func (c *InfisicalClient) UpdateConfiguration(config Config)
type InfisicalClientInterface ¶
type InfisicalClientInterface interface {
UpdateConfiguration(config Config)
Secrets() SecretsInterface
Folders() FoldersInterface
Auth() AuthInterface
}
func NewInfisicalClient ¶
func NewInfisicalClient(config Config) InfisicalClientInterface
type ListFoldersOptions ¶ added in v0.1.6
type ListFoldersOptions = api.ListFoldersV1Request
type ListSecretsOptions ¶
type ListSecretsOptions = api.ListSecretsV3RawRequest
type MachineIdentityCredential ¶ added in v0.2.0
type MachineIdentityCredential = api.MachineIdentityAuthLoginResponse
type RequestError ¶ added in v0.1.7
type RequestError = errors.RequestError
type RetrieveSecretOptions ¶
type RetrieveSecretOptions = api.RetrieveSecretV3RawRequest
type SecretImport ¶
type SecretImport = models.SecretImport
type Secrets ¶
type Secrets struct {
// contains filtered or unexported fields
}
func (*Secrets) Create ¶
func (s *Secrets) Create(options CreateSecretOptions) (models.Secret, error)
func (*Secrets) Delete ¶
func (s *Secrets) Delete(options DeleteSecretOptions) (models.Secret, error)
type SecretsInterface ¶
type SecretsInterface interface {
List(options ListSecretsOptions) ([]models.Secret, error)
Retrieve(options RetrieveSecretOptions) (models.Secret, error)
Update(options UpdateSecretOptions) (models.Secret, error)
Create(options CreateSecretOptions) (models.Secret, error)
Delete(options DeleteSecretOptions) (models.Secret, error)
}
func NewSecrets ¶
func NewSecrets(client *InfisicalClient) SecretsInterface
type UpdateFolderOptions ¶ added in v0.1.6
type UpdateFolderOptions = api.UpdateFolderV1Request
type UpdateSecretOptions ¶
type UpdateSecretOptions = api.UpdateSecretV3RawRequest
Click to show internal directories.
Click to hide internal directories.