vaultclient

package
Version: v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 20, 2020 License: Apache-2.0 Imports: 8 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 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) 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
t or T : Toggle theme light dark auto
y or Y : Canonical URL