Documentation
¶
Index ¶
- func ProjectStaticIpassociateStateTypeChoices() []string
- func ProjectStaticIpdissociateStateTypeChoices() []string
- func ProjectStaticIppatchStateTypeChoices() []string
- func StaticIpStateTypeChoices() []string
- func StaticIpcreateStateTypeChoices() []string
- type Handler
- type ProjectStaticIpassociateIn
- type ProjectStaticIpassociateOut
- type ProjectStaticIpassociateStateType
- type ProjectStaticIpdissociateOut
- type ProjectStaticIpdissociateStateType
- type ProjectStaticIppatchIn
- type ProjectStaticIppatchOut
- type ProjectStaticIppatchStateType
- type StaticIPHandler
- func (h *StaticIPHandler) ProjectStaticIPAssociate(ctx context.Context, project string, staticIpAddressId string, ...) (*ProjectStaticIpassociateOut, error)
- func (h *StaticIPHandler) ProjectStaticIPAvailabilityList(ctx context.Context, project string) ([]StaticIpAddressAvailabilityOut, error)
- func (h *StaticIPHandler) ProjectStaticIPDissociate(ctx context.Context, project string, staticIpAddressId string) (*ProjectStaticIpdissociateOut, error)
- func (h *StaticIPHandler) ProjectStaticIPPatch(ctx context.Context, project string, staticIpAddressId string, ...) (*ProjectStaticIppatchOut, error)
- func (h *StaticIPHandler) PublicStaticIPAvailabilityList(ctx context.Context, tenant string) ([]StaticIpAddressAvailabilityOut, error)
- func (h *StaticIPHandler) StaticIPCreate(ctx context.Context, project string, in *StaticIpcreateIn) (*StaticIpcreateOut, error)
- func (h *StaticIPHandler) StaticIPList(ctx context.Context, project string) ([]StaticIpOut, error)
- type StaticIpAddressAvailabilityOut
- type StaticIpOut
- type StaticIpStateType
- type StaticIpcreateIn
- type StaticIpcreateOut
- type StaticIpcreateStateType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ProjectStaticIpassociateStateTypeChoices ¶ added in v0.3.0
func ProjectStaticIpassociateStateTypeChoices() []string
func ProjectStaticIpdissociateStateTypeChoices ¶ added in v0.3.0
func ProjectStaticIpdissociateStateTypeChoices() []string
func ProjectStaticIppatchStateTypeChoices ¶ added in v0.3.0
func ProjectStaticIppatchStateTypeChoices() []string
func StaticIpStateTypeChoices ¶ added in v0.3.0
func StaticIpStateTypeChoices() []string
func StaticIpcreateStateTypeChoices ¶ added in v0.3.0
func StaticIpcreateStateTypeChoices() []string
Types ¶
type Handler ¶
type Handler interface {
// ProjectStaticIPAssociate associate a static IP address with a service
// POST /project/{project}/static-ips/{static_ip_address_id}/association
// https://api.aiven.io/doc/#tag/StaticIP/operation/ProjectStaticIPAssociate
ProjectStaticIPAssociate(ctx context.Context, project string, staticIpAddressId string, in *ProjectStaticIpassociateIn) (*ProjectStaticIpassociateOut, error)
// ProjectStaticIPAvailabilityList list static IP address cloud availability and prices for a project
// GET /project/{project}/static-ip-availability
// https://api.aiven.io/doc/#tag/StaticIP/operation/ProjectStaticIPAvailabilityList
ProjectStaticIPAvailabilityList(ctx context.Context, project string) ([]StaticIpAddressAvailabilityOut, error)
// ProjectStaticIPDissociate dissociate a static IP address from a service
// DELETE /project/{project}/static-ips/{static_ip_address_id}/association
// https://api.aiven.io/doc/#tag/StaticIP/operation/ProjectStaticIPDissociate
ProjectStaticIPDissociate(ctx context.Context, project string, staticIpAddressId string) (*ProjectStaticIpdissociateOut, error)
// ProjectStaticIPPatch update a static IP address configuration
// PATCH /project/{project}/static-ips/{static_ip_address_id}
// https://api.aiven.io/doc/#tag/StaticIP/operation/ProjectStaticIPPatch
ProjectStaticIPPatch(ctx context.Context, project string, staticIpAddressId string, in *ProjectStaticIppatchIn) (*ProjectStaticIppatchOut, error)
// PublicStaticIPAvailabilityList list static IP clouds and prices
// GET /tenants/{tenant}/static-ip-availability
// https://api.aiven.io/doc/#tag/Cloud_platforms/operation/PublicStaticIPAvailabilityList
PublicStaticIPAvailabilityList(ctx context.Context, tenant string) ([]StaticIpAddressAvailabilityOut, error)
// StaticIPCreate create static IP address
// POST /project/{project}/static-ips
// https://api.aiven.io/doc/#tag/StaticIP/operation/StaticIPCreate
StaticIPCreate(ctx context.Context, project string, in *StaticIpcreateIn) (*StaticIpcreateOut, error)
// StaticIPList list static IP addresses
// GET /project/{project}/static-ips
// https://api.aiven.io/doc/#tag/StaticIP/operation/StaticIPList
StaticIPList(ctx context.Context, project string) ([]StaticIpOut, error)
}
type ProjectStaticIpassociateIn ¶
type ProjectStaticIpassociateIn struct {
ServiceName string `json:"service_name"`
}
type ProjectStaticIpassociateOut ¶
type ProjectStaticIpassociateOut struct {
CloudName string `json:"cloud_name"`
IpAddress string `json:"ip_address"`
ServiceName string `json:"service_name"`
State ProjectStaticIpassociateStateType `json:"state"`
StaticIpAddressId string `json:"static_ip_address_id"`
TerminationProtection bool `json:"termination_protection"`
}
type ProjectStaticIpassociateStateType ¶ added in v0.3.0
type ProjectStaticIpassociateStateType string
const ( ProjectStaticIpassociateStateTypeCreating ProjectStaticIpassociateStateType = "creating" ProjectStaticIpassociateStateTypeCreated ProjectStaticIpassociateStateType = "created" ProjectStaticIpassociateStateTypeAvailable ProjectStaticIpassociateStateType = "available" ProjectStaticIpassociateStateTypeAssigned ProjectStaticIpassociateStateType = "assigned" ProjectStaticIpassociateStateTypeDeleting ProjectStaticIpassociateStateType = "deleting" ProjectStaticIpassociateStateTypeDeleted ProjectStaticIpassociateStateType = "deleted" )
type ProjectStaticIpdissociateOut ¶
type ProjectStaticIpdissociateOut struct {
CloudName string `json:"cloud_name"`
IpAddress string `json:"ip_address"`
ServiceName string `json:"service_name"`
State ProjectStaticIpdissociateStateType `json:"state"`
StaticIpAddressId string `json:"static_ip_address_id"`
TerminationProtection bool `json:"termination_protection"`
}
type ProjectStaticIpdissociateStateType ¶ added in v0.3.0
type ProjectStaticIpdissociateStateType string
const ( ProjectStaticIpdissociateStateTypeCreating ProjectStaticIpdissociateStateType = "creating" ProjectStaticIpdissociateStateTypeCreated ProjectStaticIpdissociateStateType = "created" ProjectStaticIpdissociateStateTypeAvailable ProjectStaticIpdissociateStateType = "available" ProjectStaticIpdissociateStateTypeAssigned ProjectStaticIpdissociateStateType = "assigned" ProjectStaticIpdissociateStateTypeDeleting ProjectStaticIpdissociateStateType = "deleting" ProjectStaticIpdissociateStateTypeDeleted ProjectStaticIpdissociateStateType = "deleted" )
type ProjectStaticIppatchIn ¶
type ProjectStaticIppatchIn struct {
TerminationProtection *bool `json:"termination_protection,omitempty"`
}
type ProjectStaticIppatchOut ¶
type ProjectStaticIppatchOut struct {
CloudName string `json:"cloud_name"`
IpAddress string `json:"ip_address"`
ServiceName string `json:"service_name"`
State ProjectStaticIppatchStateType `json:"state"`
StaticIpAddressId string `json:"static_ip_address_id"`
TerminationProtection bool `json:"termination_protection"`
}
type ProjectStaticIppatchStateType ¶ added in v0.3.0
type ProjectStaticIppatchStateType string
const ( ProjectStaticIppatchStateTypeCreating ProjectStaticIppatchStateType = "creating" ProjectStaticIppatchStateTypeCreated ProjectStaticIppatchStateType = "created" ProjectStaticIppatchStateTypeAvailable ProjectStaticIppatchStateType = "available" ProjectStaticIppatchStateTypeAssigned ProjectStaticIppatchStateType = "assigned" ProjectStaticIppatchStateTypeDeleting ProjectStaticIppatchStateType = "deleting" ProjectStaticIppatchStateTypeDeleted ProjectStaticIppatchStateType = "deleted" )
type StaticIPHandler ¶
type StaticIPHandler struct {
// contains filtered or unexported fields
}
func NewHandler ¶
func NewHandler(doer doer) StaticIPHandler
func (*StaticIPHandler) ProjectStaticIPAssociate ¶
func (h *StaticIPHandler) ProjectStaticIPAssociate(ctx context.Context, project string, staticIpAddressId string, in *ProjectStaticIpassociateIn) (*ProjectStaticIpassociateOut, error)
func (*StaticIPHandler) ProjectStaticIPAvailabilityList ¶
func (h *StaticIPHandler) ProjectStaticIPAvailabilityList(ctx context.Context, project string) ([]StaticIpAddressAvailabilityOut, error)
func (*StaticIPHandler) ProjectStaticIPDissociate ¶
func (h *StaticIPHandler) ProjectStaticIPDissociate(ctx context.Context, project string, staticIpAddressId string) (*ProjectStaticIpdissociateOut, error)
func (*StaticIPHandler) ProjectStaticIPPatch ¶
func (h *StaticIPHandler) ProjectStaticIPPatch(ctx context.Context, project string, staticIpAddressId string, in *ProjectStaticIppatchIn) (*ProjectStaticIppatchOut, error)
func (*StaticIPHandler) PublicStaticIPAvailabilityList ¶
func (h *StaticIPHandler) PublicStaticIPAvailabilityList(ctx context.Context, tenant string) ([]StaticIpAddressAvailabilityOut, error)
func (*StaticIPHandler) StaticIPCreate ¶
func (h *StaticIPHandler) StaticIPCreate(ctx context.Context, project string, in *StaticIpcreateIn) (*StaticIpcreateOut, error)
func (*StaticIPHandler) StaticIPList ¶
func (h *StaticIPHandler) StaticIPList(ctx context.Context, project string) ([]StaticIpOut, error)
type StaticIpOut ¶
type StaticIpStateType ¶ added in v0.3.0
type StaticIpStateType string
const ( StaticIpStateTypeCreating StaticIpStateType = "creating" StaticIpStateTypeCreated StaticIpStateType = "created" StaticIpStateTypeAvailable StaticIpStateType = "available" StaticIpStateTypeAssigned StaticIpStateType = "assigned" StaticIpStateTypeDeleting StaticIpStateType = "deleting" StaticIpStateTypeDeleted StaticIpStateType = "deleted" )
type StaticIpcreateIn ¶
type StaticIpcreateOut ¶
type StaticIpcreateOut struct {
CloudName string `json:"cloud_name"`
IpAddress string `json:"ip_address"`
ServiceName string `json:"service_name"`
State StaticIpcreateStateType `json:"state"`
StaticIpAddressId string `json:"static_ip_address_id"`
TerminationProtection bool `json:"termination_protection"`
}
type StaticIpcreateStateType ¶ added in v0.3.0
type StaticIpcreateStateType string
const ( StaticIpcreateStateTypeCreating StaticIpcreateStateType = "creating" StaticIpcreateStateTypeCreated StaticIpcreateStateType = "created" StaticIpcreateStateTypeAvailable StaticIpcreateStateType = "available" StaticIpcreateStateTypeAssigned StaticIpcreateStateType = "assigned" StaticIpcreateStateTypeDeleting StaticIpcreateStateType = "deleting" StaticIpcreateStateTypeDeleted StaticIpcreateStateType = "deleted" )
Click to show internal directories.
Click to hide internal directories.