Documentation
¶
Index ¶
- type API
- func (a *API) AcceptInvitation(ctx context.Context, subscription int, tgwInvitationId int) error
- func (a *API) AcceptInvitationActiveActive(ctx context.Context, subscription int, regionId int, tgwInvitationId int) error
- func (a *API) Create(ctx context.Context, subscription int, tgwId int) (int, error)
- func (a *API) CreateActiveActive(ctx context.Context, subscription int, regionId int, tgwId int) (int, error)
- func (a *API) Delete(ctx context.Context, subscription int, tgwId int) error
- func (a *API) DeleteActiveActive(ctx context.Context, subscription int, regionId int, tgwId int) error
- func (a *API) Get(ctx context.Context, subscription int) (*GetAttachmentsTask, error)
- func (a *API) GetActiveActive(ctx context.Context, subscription int, regionId int) (*GetAttachmentsTask, error)
- func (a *API) ListInvitations(ctx context.Context, subscription int) ([]*TransitGatewayInvitation, error)
- func (a *API) ListInvitationsActiveActive(ctx context.Context, subscription int, regionId int) ([]*TransitGatewayInvitation, error)
- func (a *API) RejectInvitation(ctx context.Context, subscription int, tgwInvitationId int) error
- func (a *API) RejectInvitationActiveActive(ctx context.Context, subscription int, regionId int, tgwInvitationId int) error
- func (a *API) Update(ctx context.Context, subscription int, tgwId int, cidrs []*string) error
- func (a *API) UpdateActiveActive(ctx context.Context, subscription int, regionId int, tgwId int, ...) error
- type Cidr
- type GetAttachmentsTask
- type HttpClient
- type InvitationResponseData
- type InvitationsResource
- type InvitationsResponse
- type Log
- type NotFound
- type NotFoundActiveActive
- type Resource
- type Response
- type TaskWaiter
- type TransitGatewayAttachment
- type TransitGatewayInvitation
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API struct {
// contains filtered or unexported fields
}
func NewAPI ¶
func NewAPI(client HttpClient, taskWaiter TaskWaiter, logger Log) *API
func (*API) AcceptInvitation ¶ added in v0.44.0
func (*API) AcceptInvitationActiveActive ¶ added in v0.44.0
func (*API) CreateActiveActive ¶
func (*API) DeleteActiveActive ¶
func (*API) GetActiveActive ¶
func (*API) ListInvitations ¶ added in v0.44.0
func (*API) ListInvitationsActiveActive ¶ added in v0.44.0
func (*API) RejectInvitation ¶ added in v0.44.0
func (*API) RejectInvitationActiveActive ¶ added in v0.44.0
type GetAttachmentsTask ¶
type HttpClient ¶
type HttpClient interface {
Get(ctx context.Context, name, path string, responseBody interface{}) error
Post(ctx context.Context, name, path string, requestBody interface{}, responseBody interface{}) error
Put(ctx context.Context, name, path string, requestBody interface{}, responseBody interface{}) error
Delete(ctx context.Context, name, path string, requestBody interface{}, responseBody interface{}) error
}
type InvitationResponseData ¶ added in v0.44.0
type InvitationResponseData struct {
ResourceId *int `json:"resourceId,omitempty"`
Resource *InvitationsResource `json:"resource,omitempty"`
}
type InvitationsResource ¶ added in v0.44.0
type InvitationsResource struct {
Resources []*TransitGatewayInvitation `json:"resources,omitempty"`
}
type InvitationsResponse ¶ added in v0.44.0
type InvitationsResponse struct {
CommandType *string `json:"commandType,omitempty"`
Description *string `json:"description,omitempty"`
Status *string `json:"status,omitempty"`
ID *string `json:"taskId,omitempty"`
Response *InvitationResponseData `json:"response,omitempty"`
}
type NotFoundActiveActive ¶
type NotFoundActiveActive struct {
// contains filtered or unexported fields
}
func (*NotFoundActiveActive) Error ¶
func (f *NotFoundActiveActive) Error() string
type Resource ¶
type Resource struct {
TransitGatewayAttachment []*TransitGatewayAttachment `json:"tgws,omitempty"`
}
type TaskWaiter ¶
type TransitGatewayAttachment ¶
type TransitGatewayAttachment struct {
Id *int `json:"id,omitempty"`
AwsTgwUid *string `json:"awsTgwUid,omitempty"`
AttachmentUid *string `json:"attachmentUid,omitempty"`
Status *string `json:"status,omitempty"`
AttachmentStatus *string `json:"attachmentStatus,omitempty"`
AwsAccountId *string `json:"awsAccountId,omitempty"`
Cidrs []*Cidr `json:"cidrs,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.