Documentation ¶
Index ¶
- type Check
- func (o Check) MarshalJSON() ([]byte, error)
- func (o *Check) SetEndpoint(v *string) *Check
- func (o *Check) SetHealthy(v *int) *Check
- func (o *Check) SetInterval(v *int) *Check
- func (o *Check) SetPort(v *int) *Check
- func (o *Check) SetProtocol(v *string) *Check
- func (o *Check) SetTimeout(v *int) *Check
- func (o *Check) SetUnhealthy(v *int) *Check
- type CreateHealthCheckInput
- type CreateHealthCheckOutput
- type DeleteHealthCheckInput
- type DeleteHealthCheckOutput
- type HealthCheck
- func (o HealthCheck) MarshalJSON() ([]byte, error)
- func (o *HealthCheck) SetCheck(v *Check) *HealthCheck
- func (o *HealthCheck) SetId(v *string) *HealthCheck
- func (o *HealthCheck) SetName(v *string) *HealthCheck
- func (o *HealthCheck) SetProxyAddr(v *string) *HealthCheck
- func (o *HealthCheck) SetProxyPort(v *int) *HealthCheck
- func (o *HealthCheck) SetResourceId(v *string) *HealthCheck
- type ListHealthChecksInput
- type ListHealthChecksOutput
- type ReadHealthCheckInput
- type ReadHealthCheckOutput
- type Service
- type ServiceOp
- func (s *ServiceOp) Create(ctx context.Context, input *CreateHealthCheckInput) (*CreateHealthCheckOutput, error)
- func (s *ServiceOp) Delete(ctx context.Context, input *DeleteHealthCheckInput) (*DeleteHealthCheckOutput, error)
- func (s *ServiceOp) List(ctx context.Context, input *ListHealthChecksInput) (*ListHealthChecksOutput, error)
- func (s *ServiceOp) Read(ctx context.Context, input *ReadHealthCheckInput) (*ReadHealthCheckOutput, error)
- func (s *ServiceOp) Update(ctx context.Context, input *UpdateHealthCheckInput) (*UpdateHealthCheckOutput, error)
- type UpdateHealthCheckInput
- type UpdateHealthCheckOutput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Check ¶
type Check struct { Protocol *string `json:"protocol,omitempty"` Endpoint *string `json:"endpoint,omitempty"` Port *int `json:"port,omitempty"` Interval *int `json:"interval,omitempty"` Timeout *int `json:"timeout,omitempty"` Healthy *int `json:"healthyThreshold,omitempty"` Unhealthy *int `json:"unhealthyThreshold,omitempty"` // contains filtered or unexported fields }
func (Check) MarshalJSON ¶
func (*Check) SetEndpoint ¶
func (*Check) SetHealthy ¶
func (*Check) SetInterval ¶
func (*Check) SetProtocol ¶
func (*Check) SetTimeout ¶
func (*Check) SetUnhealthy ¶
type CreateHealthCheckInput ¶
type CreateHealthCheckInput struct {
HealthCheck *HealthCheck `json:"healthCheck,omitempty"`
}
type CreateHealthCheckOutput ¶
type CreateHealthCheckOutput struct {
HealthCheck *HealthCheck `json:"healthCheck,omitempty"`
}
type DeleteHealthCheckInput ¶
type DeleteHealthCheckInput struct {
HealthCheckID *string `json:"healthCheckId,omitempty"`
}
type DeleteHealthCheckOutput ¶
type DeleteHealthCheckOutput struct{}
type HealthCheck ¶
type HealthCheck struct { ID *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` ResourceID *string `json:"resourceId,omitempty"` Check *Check `json:"check,omitempty"` ProxyAddr *string `json:"proxyAddress,omitempty"` ProxyPort *int `json:"proxyPort,omitempty"` // contains filtered or unexported fields }
func (HealthCheck) MarshalJSON ¶
func (o HealthCheck) MarshalJSON() ([]byte, error)
func (*HealthCheck) SetCheck ¶
func (o *HealthCheck) SetCheck(v *Check) *HealthCheck
func (*HealthCheck) SetId ¶
func (o *HealthCheck) SetId(v *string) *HealthCheck
func (*HealthCheck) SetName ¶
func (o *HealthCheck) SetName(v *string) *HealthCheck
func (*HealthCheck) SetProxyAddr ¶
func (o *HealthCheck) SetProxyAddr(v *string) *HealthCheck
func (*HealthCheck) SetProxyPort ¶
func (o *HealthCheck) SetProxyPort(v *int) *HealthCheck
func (*HealthCheck) SetResourceId ¶
func (o *HealthCheck) SetResourceId(v *string) *HealthCheck
type ListHealthChecksInput ¶
type ListHealthChecksInput struct{}
type ListHealthChecksOutput ¶
type ListHealthChecksOutput struct {
HealthChecks []*HealthCheck `json:"healthChecks,omitempty"`
}
type ReadHealthCheckInput ¶
type ReadHealthCheckInput struct {
HealthCheckID *string `json:"healthCheckId,omitempty"`
}
type ReadHealthCheckOutput ¶
type ReadHealthCheckOutput struct {
HealthCheck *HealthCheck `json:"healthCheck,omitempty"`
}
type Service ¶
type Service interface { List(context.Context, *ListHealthChecksInput) (*ListHealthChecksOutput, error) Create(context.Context, *CreateHealthCheckInput) (*CreateHealthCheckOutput, error) Read(context.Context, *ReadHealthCheckInput) (*ReadHealthCheckOutput, error) Update(context.Context, *UpdateHealthCheckInput) (*UpdateHealthCheckOutput, error) Delete(context.Context, *DeleteHealthCheckInput) (*DeleteHealthCheckOutput, error) }
Service provides the API operation methods for making requests to endpoints of the Spotinst API. See this package's package overview docs for details on the service.
type ServiceOp ¶
func (*ServiceOp) Create ¶
func (s *ServiceOp) Create(ctx context.Context, input *CreateHealthCheckInput) (*CreateHealthCheckOutput, error)
func (*ServiceOp) Delete ¶
func (s *ServiceOp) Delete(ctx context.Context, input *DeleteHealthCheckInput) (*DeleteHealthCheckOutput, error)
func (*ServiceOp) List ¶
func (s *ServiceOp) List(ctx context.Context, input *ListHealthChecksInput) (*ListHealthChecksOutput, error)
func (*ServiceOp) Read ¶
func (s *ServiceOp) Read(ctx context.Context, input *ReadHealthCheckInput) (*ReadHealthCheckOutput, error)
func (*ServiceOp) Update ¶
func (s *ServiceOp) Update(ctx context.Context, input *UpdateHealthCheckInput) (*UpdateHealthCheckOutput, error)
type UpdateHealthCheckInput ¶
type UpdateHealthCheckInput struct {
HealthCheck *HealthCheck `json:"healthCheck,omitempty"`
}
type UpdateHealthCheckOutput ¶
type UpdateHealthCheckOutput struct {
HealthCheck *HealthCheck `json:"healthCheck,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.