vaultclient

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: May 24, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ServiceName = "iam"       // Name of service.
	EndpointsID = ServiceName // ID to lookup a service endpoint with.
	ServiceID   = "Vault"     // ServiceID is a unique identifier of a specific service.
)

Service information constants

Variables

This section is empty.

Functions

This section is empty.

Types

type Account

type Account struct {
	AccountData *AccountData `type:"structure" locationName:"data"`
}

Account contains information about a Vault account.

type AccountData

type AccountData struct {
	Arn         *string    `locationName:"arn"`
	Name        *string    `locationName:"name"`
	Email       *string    `locationName:"emailAddress"`
	ID          *string    `locationName:"id"`
	QuotaMax    *int64     `locationName:"quotaMax"`
	CreateDate  *time.Time `locationName:"createDate"`
	CanonicalID *string    `locationName:"canonicalId"`
	AliasList   []*string  `locationName:"aliasList"`
}

type AccountFromList

type AccountFromList struct {
	Arn         *string    `locationName:"arn"`
	Name        *string    `locationName:"name"`
	Email       *string    `locationName:"emailAddress"`
	ID          *string    `locationName:"id"`
	QuotaMax    *int64     `locationName:"quota"`
	CreateDate  *time.Time `locationName:"createDate"`
	CanonicalID *string    `locationName:"canonicalId"`
}

type CreateAccountInput

type CreateAccountInput struct {
	Name              *string `locationName:"name"`
	Email             *string `locationName:"emailAddress"`
	QuotaMax          *int64  `locationName:"quotaMax"`
	ExternalAccountID *string `locationName:"externalAccountId"`
}

func (*CreateAccountInput) SetEmail

SetEmail sets the Email field's value.

func (*CreateAccountInput) SetExternalAccountID

func (s *CreateAccountInput) SetExternalAccountID(v string) *CreateAccountInput

SetExternalAccountID sets the ExternalAccountID field's value.

func (*CreateAccountInput) SetName

SetName sets the Name field's value.

func (*CreateAccountInput) SetQuotaMax

func (s *CreateAccountInput) SetQuotaMax(v int64) *CreateAccountInput

SetQuotaMax sets the QuotaMax field's value.

func (CreateAccountInput) String

func (s CreateAccountInput) String() string

String returns the string representation

func (*CreateAccountInput) Validate

func (s *CreateAccountInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type CreateAccountOutput

type CreateAccountOutput struct {
	Account *Account `type:"structure" locationName:"account"`
}

CreateAccountOutput contains the response to a successful CreateAccount request.

func (CreateAccountOutput) GetAccount

func (s CreateAccountOutput) GetAccount() *AccountData

GetAccount returns AccountData

func (CreateAccountOutput) String

func (s CreateAccountOutput) String() string

String returns the string representation

type DeleteAccountInput

type DeleteAccountInput struct {
	AccountName *string
}

func (*DeleteAccountInput) SetAccountName

func (s *DeleteAccountInput) SetAccountName(v string) *DeleteAccountInput

SetAccountName sets the AccountName field's value.

func (DeleteAccountInput) String

func (s DeleteAccountInput) String() string

String returns the string representation

func (*DeleteAccountInput) Validate

func (s *DeleteAccountInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type DeleteAccountOutput

type DeleteAccountOutput struct{}

DeleteAccountOutput contains the response to a successful DeleteAccount request.

type GenerateAccountAccessKeyInput

type GenerateAccountAccessKeyInput struct {
	AccountName       *string
	ExternalAccessKey *string `locationName:"externalAccessKey"`
	ExternalSecretKey *string `locationName:"externalSecretKey"`
}

func (*GenerateAccountAccessKeyInput) SetAccountName

SetAccountName sets the AccountName field's value.

func (*GenerateAccountAccessKeyInput) SetExternalAccessKey

SetExternalAccessKey sets the ExternalAccessKey field's value.

func (*GenerateAccountAccessKeyInput) SetExternalSecretKey

SetExternalSecretKey sets the ExternalSecretKey field's value.

func (GenerateAccountAccessKeyInput) String

String returns the string representation

func (*GenerateAccountAccessKeyInput) Validate

func (s *GenerateAccountAccessKeyInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type GenerateAccountAccessKeyOutput

type GenerateAccountAccessKeyOutput struct {
	GeneratedKey *GeneratedKey `type:"structure" locationName:"data"`
}

GenerateAccountAccessKeyOutput contains the response to a successful GenerateAccountAccessKey request.

func (GenerateAccountAccessKeyOutput) String

String returns the string representation

type GeneratedKey

type GeneratedKey struct {
	ID           *string    `locationName:"id"`
	Value        *string    `locationName:"value"`
	CreateDate   *time.Time `locationName:"createDate"`
	LastUsedDate *time.Time `locationName:"lastUsedDate"`
	Status       *string    `locationName:"status"`
	UserID       *string    `locationName:"userId"`
}

type GetAccountInput added in v0.0.2

type GetAccountInput struct {
	Arn         *string `locationName:"accountArn"`
	CanonicalId *string `locationName:"canonicalId"`
	Email       *string `locationName:"emailAddress"`
	ID          *string `locationName:"accountId"`
	Name        *string `locationName:"accountName"`
}

func (*GetAccountInput) SetArn added in v0.0.2

func (s *GetAccountInput) SetArn(v string) *GetAccountInput

SetArn sets the Arn field's value.

func (*GetAccountInput) SetCanonicalId added in v0.0.2

func (s *GetAccountInput) SetCanonicalId(v string) *GetAccountInput

SetCanonicalId sets the CanonicalId field's value.

func (*GetAccountInput) SetEmail added in v0.0.2

func (s *GetAccountInput) SetEmail(v string) *GetAccountInput

SetEmail sets the Email field's value.

func (*GetAccountInput) SetID added in v0.0.2

func (s *GetAccountInput) SetID(v string) *GetAccountInput

SetId sets the Id field's value.

func (*GetAccountInput) SetName added in v0.0.2

func (s *GetAccountInput) SetName(v string) *GetAccountInput

SetName sets the Name field's value.

func (GetAccountInput) String added in v0.0.2

func (s GetAccountInput) String() string

String returns the string representation

func (*GetAccountInput) Validate added in v0.0.2

func (s *GetAccountInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type GetAccountOutput added in v0.0.2

type GetAccountOutput = AccountData

GetAccountOutput contains the response to a successful GetAccount request.

func (GetAccountOutput) String added in v0.0.2

func (s GetAccountOutput) String() string

String returns the string representation

type ListAccountsInput

type ListAccountsInput struct {
	Marker   *string
	MaxItems *int64
}

func (*ListAccountsInput) SetMarker

func (s *ListAccountsInput) SetMarker(v string) *ListAccountsInput

SetMarker sets the Marker field's value.

func (*ListAccountsInput) SetMaxItems

func (s *ListAccountsInput) SetMaxItems(v int64) *ListAccountsInput

SetMaxItems sets the MaxItems field's value.

func (ListAccountsInput) String

func (s ListAccountsInput) String() string

String returns the string representation

func (*ListAccountsInput) Validate

func (s *ListAccountsInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type ListAccountsOutput

type ListAccountsOutput struct {
	Accounts    []*AccountFromList `locationName:"accounts"`
	IsTruncated *bool              `locationName:"isTruncated"`
	Marker      *string            `locationName:"marker"`
}

ListAccountsOutput contains the response to a successful ListAccounts request.

func (ListAccountsOutput) String

func (s ListAccountsOutput) String() string

String returns the string representation

type Vault

type Vault struct {
	*client.Client
}

Vault provides the API operation methods for making requests to Vault.

func New

func New(p client.ConfigProvider, cfgs ...*aws.Config) *Vault

New creates a new instance of the Vault client with a session.

func (*Vault) CreateAccount

func (c *Vault) CreateAccount(ctx aws.Context, input *CreateAccountInput, opts ...request.Option) (*CreateAccountOutput, error)

CreateAccount API operation creates a new Vault account and adds the ability to pass a context and additional request options.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*Vault) CreateAccountRequest

func (c *Vault) CreateAccountRequest(input *CreateAccountInput) (req *request.Request, output *CreateAccountOutput)

CreateAccountRequest generates a "aws/request.Request" representing the client's request for the CreateAccount operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

func (*Vault) DeleteAccount

func (c *Vault) DeleteAccount(ctx aws.Context, input *DeleteAccountInput, opts ...request.Option) (*DeleteAccountOutput, error)

DeleteAccount API operation deletes Vault account and adds the ability to pass a context and additional request options.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*Vault) DeleteAccountRequest

func (c *Vault) DeleteAccountRequest(input *DeleteAccountInput) (req *request.Request, output *DeleteAccountOutput)

DeleteAccountRequest generates a "aws/request.Request" representing the client's request for the DeleteAccount operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

func (*Vault) GenerateAccountAccessKey

func (c *Vault) GenerateAccountAccessKey(ctx aws.Context, input *GenerateAccountAccessKeyInput, opts ...request.Option) (*GenerateAccountAccessKeyOutput, error)

GenerateAccountAccessKey API operation generates a new access key for the account and adds the ability to pass a context and additional request options.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*Vault) GenerateAccountAccessKeyRequest

func (c *Vault) GenerateAccountAccessKeyRequest(input *GenerateAccountAccessKeyInput) (req *request.Request, output *GenerateAccountAccessKeyOutput)

GenerateAccountAccessKeyRequest generates a "aws/request.Request" representing the client's request for the GenerateAccountAccessKey operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

func (*Vault) GetAccount added in v0.0.2

func (c *Vault) GetAccount(ctx aws.Context, input *GetAccountInput, opts ...request.Option) (*GetAccountOutput, error)

GetAccount API operation gets details about a Vault account and adds the ability to pass a context and additional request options.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*Vault) GetAccountRequest added in v0.0.2

func (c *Vault) GetAccountRequest(input *GetAccountInput) (req *request.Request, output *GetAccountOutput)

GetAccountRequest generates a "aws/request.Request" representing the client's request for the GetAccount operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

func (*Vault) ListAccounts

func (c *Vault) ListAccounts(ctx aws.Context, input *ListAccountsInput, opts ...request.Option) (*ListAccountsOutput, error)

ListAccounts API operation lists Vault accounts and adds the ability to pass a context and additional request options.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*Vault) ListAccountsRequest

func (c *Vault) ListAccountsRequest(input *ListAccountsInput) (req *request.Request, output *ListAccountsOutput)

ListAccountsRequest generates a "aws/request.Request" representing the client's request for the ListAccounts operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

Jump to

Keyboard shortcuts

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