Documentation
¶
Index ¶
- type API
- 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) 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 Log
- type NotFound
- type NotFoundActiveActive
- type Resource
- type Response
- type TaskWaiter
- type TransitGatewayAttachment
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) CreateActiveActive ¶
func (*API) DeleteActiveActive ¶
func (*API) GetActiveActive ¶
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 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.