Documentation
¶
Index ¶
- Constants
- type API
- func (a *API) CreateActiveActivePrincipal(ctx context.Context, subscriptionId int, regionId int, ...) error
- func (a *API) CreateActiveActivePrivateLink(ctx context.Context, subscriptionId int, regionId int, ...) error
- func (a *API) CreatePrincipal(ctx context.Context, subscriptionId int, principal CreatePrivateLinkPrincipal) error
- func (a *API) CreatePrivateLink(ctx context.Context, subscriptionId int, privateLink CreatePrivateLink) (error, error)
- func (a *API) DeleteActiveActivePrincipal(ctx context.Context, subscriptionId int, regionId int, principal string) error
- func (a *API) DeletePrincipal(ctx context.Context, subscriptionId int, principal string) error
- func (a *API) GetActiveActivePrivateLink(ctx context.Context, subscription int, regionId int) (*PrivateLink, error)
- func (a *API) GetActiveActivePrivateLinkEndpointScript(ctx context.Context, subscription int, regionId int) (*PrivateLinkEndpointScript, error)
- func (a *API) GetPrivateLink(ctx context.Context, subscription int) (*PrivateLink, error)
- func (a *API) GetPrivateLinkEndpointScript(ctx context.Context, subscriptionId int) (*PrivateLinkEndpointScript, error)
- type CreatePrivateLink
- type CreatePrivateLinkActiveActive
- type CreatePrivateLinkPrincipal
- type HttpClient
- type Log
- type NotFound
- type NotFoundActiveActive
- type PrivateLink
- type PrivateLinkActiveActive
- type PrivateLinkConnection
- type PrivateLinkDatabase
- type PrivateLinkEndpointScript
- type PrivateLinkPrincipal
- type TaskWaiter
Constants ¶
const ( // PrivateLinkStatusInitializing when PrivateLink is initialising PrivateLinkStatusInitializing = "initializing" // PrivateLinkStatusDeleted when PrivateLink has been deleted PrivateLinkStatusDeleted = "deleting" // PrivateLinkStatusActive when PrivateLink is ready PrivateLinkStatusActive = "active" // PrivateLinkPrincipalStatusInitializing when PrivateLinkPrincipal is initializing PrivateLinkPrincipalStatusInitializing = "initializing" // PrivateLinkPrincipalStatusDisassociating when PrivateLinkPrincipal is disassociating PrivateLinkPrincipalStatusDisassociating = "disassociating" // PrivateLinkPrincipalStatusDisassociated when PrivateLinkPrincipal has disassociated PrivateLinkPrincipalStatusDisassociated = "disassociated" // PrivateLinkPrincipalStatusAssociating when PrivateLinkPrincipal is associating PrivateLinkPrincipalStatusAssociating = "associating" // PrivateLinkPrincipalStatusAssociated when PrivateLinkPrincipal has associated PrivateLinkPrincipalStatusAssociated = "associated" // PrivateLinkPrincipalStatusFailed when PrivateLinkPrincipal has failed PrivateLinkPrincipalStatusFailed = "failed" )
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) CreateActiveActivePrincipal ¶
func (a *API) CreateActiveActivePrincipal(ctx context.Context, subscriptionId int, regionId int, principal CreatePrivateLinkPrincipal) error
CreateActiveActivePrincipal will add a principal to an active active PrivateLink.
func (*API) CreateActiveActivePrivateLink ¶
func (a *API) CreateActiveActivePrivateLink(ctx context.Context, subscriptionId int, regionId int, privateLink CreatePrivateLink) error
CreateActiveActivePrivateLink will create a new active active PrivateLink.
func (*API) CreatePrincipal ¶
func (a *API) CreatePrincipal(ctx context.Context, subscriptionId int, principal CreatePrivateLinkPrincipal) error
CreatePrincipal will add a principal to a PrivateLink.
func (*API) CreatePrivateLink ¶
func (a *API) CreatePrivateLink(ctx context.Context, subscriptionId int, privateLink CreatePrivateLink) (error, error)
// CreatePrivateLink will create a new PrivateLink.
func (*API) DeleteActiveActivePrincipal ¶
func (a *API) DeleteActiveActivePrincipal(ctx context.Context, subscriptionId int, regionId int, principal string) error
DeleteActiveActivePrincipal will remove a principal from an active active PrivateLink.
func (*API) DeletePrincipal ¶
DeletePrincipal will remove a principal from a PrivateLink.
func (*API) GetActiveActivePrivateLink ¶
func (a *API) GetActiveActivePrivateLink(ctx context.Context, subscription int, regionId int) (*PrivateLink, error)
GetActiveActivePrivateLink will get a new active active PrivateLink.
func (*API) GetActiveActivePrivateLinkEndpointScript ¶
func (a *API) GetActiveActivePrivateLinkEndpointScript(ctx context.Context, subscription int, regionId int) (*PrivateLinkEndpointScript, error)
GetPrivateLinkEndpointScript will get the script for an endpoint.
func (*API) GetPrivateLink ¶
GetPrivateLink will get a new PrivateLink.
func (*API) GetPrivateLinkEndpointScript ¶
func (a *API) GetPrivateLinkEndpointScript(ctx context.Context, subscriptionId int) (*PrivateLinkEndpointScript, error)
GetPrivateLinkEndpointScript will get the script for an endpoint.
type CreatePrivateLink ¶
type HttpClient ¶
type HttpClient interface {
Get(ctx context.Context, name, path string, responseBody interface{}) error
GetWithQuery(ctx context.Context, name, path string, query url.Values, 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 PrivateLink ¶
type PrivateLink struct {
Status *string `json:"status,omitempty"`
Principals []*PrivateLinkPrincipal `json:"principals,omitempty"`
ResourceConfigurationId *string `json:"resourceConfigurationId,omitempty"`
ResourceConfigurationArn *string `json:"resourceConfigurationArn,omitempty"`
Connections []*PrivateLinkConnection `json:"connections,omitempty"`
Databases []*PrivateLinkDatabase `json:"databases,omitempty"`
SubscriptionId *int `json:"subscriptionId,omitempty"`
RegionId *int `json:"regionId,omitempty"`
ErrorMessage *string `json:"errorMessage,omitempty"`
}
type PrivateLinkActiveActive ¶
type PrivateLinkConnection ¶
type PrivateLinkDatabase ¶
type PrivateLinkEndpointScript ¶
type PrivateLinkEndpointScript = string