Documentation ¶
Overview ¶
Package globalloadbalancermonitorv1 : Operations and models for the GlobalLoadBalancerMonitorV1 service
Index ¶
- Constants
- func GetServiceURLForRegion(region string) (string, error)
- func UnmarshalDeleteMonitorResp(m map[string]json.RawMessage, result interface{}) (err error)
- func UnmarshalDeleteMonitorRespResult(m map[string]json.RawMessage, result interface{}) (err error)
- func UnmarshalListMonitorResp(m map[string]json.RawMessage, result interface{}) (err error)
- func UnmarshalMonitorPack(m map[string]json.RawMessage, result interface{}) (err error)
- func UnmarshalMonitorResp(m map[string]json.RawMessage, result interface{}) (err error)
- func UnmarshalResultInfo(m map[string]json.RawMessage, result interface{}) (err error)
- type CreateLoadBalancerMonitorOptions
- func (options *CreateLoadBalancerMonitorOptions) SetAllowInsecure(allowInsecure bool) *CreateLoadBalancerMonitorOptions
- func (options *CreateLoadBalancerMonitorOptions) SetDescription(description string) *CreateLoadBalancerMonitorOptions
- func (options *CreateLoadBalancerMonitorOptions) SetExpectedBody(expectedBody string) *CreateLoadBalancerMonitorOptions
- func (options *CreateLoadBalancerMonitorOptions) SetExpectedCodes(expectedCodes string) *CreateLoadBalancerMonitorOptions
- func (options *CreateLoadBalancerMonitorOptions) SetFollowRedirects(followRedirects bool) *CreateLoadBalancerMonitorOptions
- func (options *CreateLoadBalancerMonitorOptions) SetHeader(header map[string][]string) *CreateLoadBalancerMonitorOptions
- func (options *CreateLoadBalancerMonitorOptions) SetHeaders(param map[string]string) *CreateLoadBalancerMonitorOptions
- func (options *CreateLoadBalancerMonitorOptions) SetInterval(interval int64) *CreateLoadBalancerMonitorOptions
- func (options *CreateLoadBalancerMonitorOptions) SetMethod(method string) *CreateLoadBalancerMonitorOptions
- func (options *CreateLoadBalancerMonitorOptions) SetPath(path string) *CreateLoadBalancerMonitorOptions
- func (options *CreateLoadBalancerMonitorOptions) SetPort(port int64) *CreateLoadBalancerMonitorOptions
- func (options *CreateLoadBalancerMonitorOptions) SetRetries(retries int64) *CreateLoadBalancerMonitorOptions
- func (options *CreateLoadBalancerMonitorOptions) SetTimeout(timeout int64) *CreateLoadBalancerMonitorOptions
- func (options *CreateLoadBalancerMonitorOptions) SetType(typeVar string) *CreateLoadBalancerMonitorOptions
- type DeleteLoadBalancerMonitorOptions
- type DeleteMonitorResp
- type DeleteMonitorRespResult
- type EditLoadBalancerMonitorOptions
- func (options *EditLoadBalancerMonitorOptions) SetAllowInsecure(allowInsecure bool) *EditLoadBalancerMonitorOptions
- func (options *EditLoadBalancerMonitorOptions) SetDescription(description string) *EditLoadBalancerMonitorOptions
- func (options *EditLoadBalancerMonitorOptions) SetExpectedBody(expectedBody string) *EditLoadBalancerMonitorOptions
- func (options *EditLoadBalancerMonitorOptions) SetExpectedCodes(expectedCodes string) *EditLoadBalancerMonitorOptions
- func (options *EditLoadBalancerMonitorOptions) SetFollowRedirects(followRedirects bool) *EditLoadBalancerMonitorOptions
- func (options *EditLoadBalancerMonitorOptions) SetHeader(header map[string][]string) *EditLoadBalancerMonitorOptions
- func (options *EditLoadBalancerMonitorOptions) SetHeaders(param map[string]string) *EditLoadBalancerMonitorOptions
- func (options *EditLoadBalancerMonitorOptions) SetInterval(interval int64) *EditLoadBalancerMonitorOptions
- func (options *EditLoadBalancerMonitorOptions) SetMethod(method string) *EditLoadBalancerMonitorOptions
- func (options *EditLoadBalancerMonitorOptions) SetMonitorIdentifier(monitorIdentifier string) *EditLoadBalancerMonitorOptions
- func (options *EditLoadBalancerMonitorOptions) SetPath(path string) *EditLoadBalancerMonitorOptions
- func (options *EditLoadBalancerMonitorOptions) SetPort(port int64) *EditLoadBalancerMonitorOptions
- func (options *EditLoadBalancerMonitorOptions) SetRetries(retries int64) *EditLoadBalancerMonitorOptions
- func (options *EditLoadBalancerMonitorOptions) SetTimeout(timeout int64) *EditLoadBalancerMonitorOptions
- func (options *EditLoadBalancerMonitorOptions) SetType(typeVar string) *EditLoadBalancerMonitorOptions
- type GetLoadBalancerMonitorOptions
- type GlobalLoadBalancerMonitorV1
- func (globalLoadBalancerMonitor *GlobalLoadBalancerMonitorV1) Clone() *GlobalLoadBalancerMonitorV1
- func (globalLoadBalancerMonitor *GlobalLoadBalancerMonitorV1) CreateLoadBalancerMonitor(createLoadBalancerMonitorOptions *CreateLoadBalancerMonitorOptions) (result *MonitorResp, response *core.DetailedResponse, err error)
- func (globalLoadBalancerMonitor *GlobalLoadBalancerMonitorV1) CreateLoadBalancerMonitorWithContext(ctx context.Context, ...) (result *MonitorResp, response *core.DetailedResponse, err error)
- func (globalLoadBalancerMonitor *GlobalLoadBalancerMonitorV1) DeleteLoadBalancerMonitor(deleteLoadBalancerMonitorOptions *DeleteLoadBalancerMonitorOptions) (result *DeleteMonitorResp, response *core.DetailedResponse, err error)
- func (globalLoadBalancerMonitor *GlobalLoadBalancerMonitorV1) DeleteLoadBalancerMonitorWithContext(ctx context.Context, ...) (result *DeleteMonitorResp, response *core.DetailedResponse, err error)
- func (globalLoadBalancerMonitor *GlobalLoadBalancerMonitorV1) DisableRetries()
- func (globalLoadBalancerMonitor *GlobalLoadBalancerMonitorV1) EditLoadBalancerMonitor(editLoadBalancerMonitorOptions *EditLoadBalancerMonitorOptions) (result *MonitorResp, response *core.DetailedResponse, err error)
- func (globalLoadBalancerMonitor *GlobalLoadBalancerMonitorV1) EditLoadBalancerMonitorWithContext(ctx context.Context, ...) (result *MonitorResp, response *core.DetailedResponse, err error)
- func (globalLoadBalancerMonitor *GlobalLoadBalancerMonitorV1) EnableRetries(maxRetries int, maxRetryInterval time.Duration)
- func (globalLoadBalancerMonitor *GlobalLoadBalancerMonitorV1) GetEnableGzipCompression() bool
- func (globalLoadBalancerMonitor *GlobalLoadBalancerMonitorV1) GetLoadBalancerMonitor(getLoadBalancerMonitorOptions *GetLoadBalancerMonitorOptions) (result *MonitorResp, response *core.DetailedResponse, err error)
- func (globalLoadBalancerMonitor *GlobalLoadBalancerMonitorV1) GetLoadBalancerMonitorWithContext(ctx context.Context, ...) (result *MonitorResp, response *core.DetailedResponse, err error)
- func (globalLoadBalancerMonitor *GlobalLoadBalancerMonitorV1) GetServiceURL() string
- func (globalLoadBalancerMonitor *GlobalLoadBalancerMonitorV1) ListAllLoadBalancerMonitors(listAllLoadBalancerMonitorsOptions *ListAllLoadBalancerMonitorsOptions) (result *ListMonitorResp, response *core.DetailedResponse, err error)
- func (globalLoadBalancerMonitor *GlobalLoadBalancerMonitorV1) ListAllLoadBalancerMonitorsWithContext(ctx context.Context, ...) (result *ListMonitorResp, response *core.DetailedResponse, err error)
- func (*GlobalLoadBalancerMonitorV1) NewCreateLoadBalancerMonitorOptions() *CreateLoadBalancerMonitorOptions
- func (*GlobalLoadBalancerMonitorV1) NewDeleteLoadBalancerMonitorOptions(monitorIdentifier string) *DeleteLoadBalancerMonitorOptions
- func (*GlobalLoadBalancerMonitorV1) NewEditLoadBalancerMonitorOptions(monitorIdentifier string) *EditLoadBalancerMonitorOptions
- func (*GlobalLoadBalancerMonitorV1) NewGetLoadBalancerMonitorOptions(monitorIdentifier string) *GetLoadBalancerMonitorOptions
- func (*GlobalLoadBalancerMonitorV1) NewListAllLoadBalancerMonitorsOptions() *ListAllLoadBalancerMonitorsOptions
- func (globalLoadBalancerMonitor *GlobalLoadBalancerMonitorV1) SetDefaultHeaders(headers http.Header)
- func (globalLoadBalancerMonitor *GlobalLoadBalancerMonitorV1) SetEnableGzipCompression(enableGzip bool)
- func (globalLoadBalancerMonitor *GlobalLoadBalancerMonitorV1) SetServiceURL(url string) error
- type GlobalLoadBalancerMonitorV1Options
- type ListAllLoadBalancerMonitorsOptions
- type ListMonitorResp
- type MonitorPack
- type MonitorResp
- type ResultInfo
Constants ¶
const DefaultServiceName = "global_load_balancer_monitor"
DefaultServiceName is the default key used to find external configuration information.
const DefaultServiceURL = "https://api.cis.cloud.ibm.com"
DefaultServiceURL is the default URL to make service requests to.
Variables ¶
This section is empty.
Functions ¶
func GetServiceURLForRegion ¶ added in v0.12.1
GetServiceURLForRegion returns the service URL to be used for the specified region
func UnmarshalDeleteMonitorResp ¶
func UnmarshalDeleteMonitorResp(m map[string]json.RawMessage, result interface{}) (err error)
UnmarshalDeleteMonitorResp unmarshals an instance of DeleteMonitorResp from the specified map of raw messages.
func UnmarshalDeleteMonitorRespResult ¶
func UnmarshalDeleteMonitorRespResult(m map[string]json.RawMessage, result interface{}) (err error)
UnmarshalDeleteMonitorRespResult unmarshals an instance of DeleteMonitorRespResult from the specified map of raw messages.
func UnmarshalListMonitorResp ¶
func UnmarshalListMonitorResp(m map[string]json.RawMessage, result interface{}) (err error)
UnmarshalListMonitorResp unmarshals an instance of ListMonitorResp from the specified map of raw messages.
func UnmarshalMonitorPack ¶
func UnmarshalMonitorPack(m map[string]json.RawMessage, result interface{}) (err error)
UnmarshalMonitorPack unmarshals an instance of MonitorPack from the specified map of raw messages.
func UnmarshalMonitorResp ¶
func UnmarshalMonitorResp(m map[string]json.RawMessage, result interface{}) (err error)
UnmarshalMonitorResp unmarshals an instance of MonitorResp from the specified map of raw messages.
func UnmarshalResultInfo ¶
func UnmarshalResultInfo(m map[string]json.RawMessage, result interface{}) (err error)
UnmarshalResultInfo unmarshals an instance of ResultInfo from the specified map of raw messages.
Types ¶
type CreateLoadBalancerMonitorOptions ¶
type CreateLoadBalancerMonitorOptions struct { // http type. Type *string `json:"type,omitempty"` // login page monitor. Description *string `json:"description,omitempty"` // method. Method *string `json:"method,omitempty"` // port number. Port *int64 `json:"port,omitempty"` // path. Path *string `json:"path,omitempty"` // timeout count. Timeout *int64 `json:"timeout,omitempty"` // retry count. Retries *int64 `json:"retries,omitempty"` // interval. Interval *int64 `json:"interval,omitempty"` // expected codes. ExpectedCodes *string `json:"expected_codes,omitempty"` // follow redirects. FollowRedirects *bool `json:"follow_redirects,omitempty"` // expected body. ExpectedBody *string `json:"expected_body,omitempty"` // allow insecure. AllowInsecure *bool `json:"allow_insecure,omitempty"` // header. Header map[string][]string `json:"header,omitempty"` // Allows users to set headers on API requests Headers map[string]string }
CreateLoadBalancerMonitorOptions : The CreateLoadBalancerMonitor options.
func (*CreateLoadBalancerMonitorOptions) SetAllowInsecure ¶
func (options *CreateLoadBalancerMonitorOptions) SetAllowInsecure(allowInsecure bool) *CreateLoadBalancerMonitorOptions
SetAllowInsecure : Allow user to set AllowInsecure
func (*CreateLoadBalancerMonitorOptions) SetDescription ¶
func (options *CreateLoadBalancerMonitorOptions) SetDescription(description string) *CreateLoadBalancerMonitorOptions
SetDescription : Allow user to set Description
func (*CreateLoadBalancerMonitorOptions) SetExpectedBody ¶
func (options *CreateLoadBalancerMonitorOptions) SetExpectedBody(expectedBody string) *CreateLoadBalancerMonitorOptions
SetExpectedBody : Allow user to set ExpectedBody
func (*CreateLoadBalancerMonitorOptions) SetExpectedCodes ¶
func (options *CreateLoadBalancerMonitorOptions) SetExpectedCodes(expectedCodes string) *CreateLoadBalancerMonitorOptions
SetExpectedCodes : Allow user to set ExpectedCodes
func (*CreateLoadBalancerMonitorOptions) SetFollowRedirects ¶
func (options *CreateLoadBalancerMonitorOptions) SetFollowRedirects(followRedirects bool) *CreateLoadBalancerMonitorOptions
SetFollowRedirects : Allow user to set FollowRedirects
func (*CreateLoadBalancerMonitorOptions) SetHeader ¶ added in v0.5.0
func (options *CreateLoadBalancerMonitorOptions) SetHeader(header map[string][]string) *CreateLoadBalancerMonitorOptions
SetHeader : Allow user to set Header
func (*CreateLoadBalancerMonitorOptions) SetHeaders ¶
func (options *CreateLoadBalancerMonitorOptions) SetHeaders(param map[string]string) *CreateLoadBalancerMonitorOptions
SetHeaders : Allow user to set Headers
func (*CreateLoadBalancerMonitorOptions) SetInterval ¶
func (options *CreateLoadBalancerMonitorOptions) SetInterval(interval int64) *CreateLoadBalancerMonitorOptions
SetInterval : Allow user to set Interval
func (*CreateLoadBalancerMonitorOptions) SetMethod ¶
func (options *CreateLoadBalancerMonitorOptions) SetMethod(method string) *CreateLoadBalancerMonitorOptions
SetMethod : Allow user to set Method
func (*CreateLoadBalancerMonitorOptions) SetPath ¶
func (options *CreateLoadBalancerMonitorOptions) SetPath(path string) *CreateLoadBalancerMonitorOptions
SetPath : Allow user to set Path
func (*CreateLoadBalancerMonitorOptions) SetPort ¶
func (options *CreateLoadBalancerMonitorOptions) SetPort(port int64) *CreateLoadBalancerMonitorOptions
SetPort : Allow user to set Port
func (*CreateLoadBalancerMonitorOptions) SetRetries ¶
func (options *CreateLoadBalancerMonitorOptions) SetRetries(retries int64) *CreateLoadBalancerMonitorOptions
SetRetries : Allow user to set Retries
func (*CreateLoadBalancerMonitorOptions) SetTimeout ¶
func (options *CreateLoadBalancerMonitorOptions) SetTimeout(timeout int64) *CreateLoadBalancerMonitorOptions
SetTimeout : Allow user to set Timeout
func (*CreateLoadBalancerMonitorOptions) SetType ¶
func (options *CreateLoadBalancerMonitorOptions) SetType(typeVar string) *CreateLoadBalancerMonitorOptions
SetType : Allow user to set Type
type DeleteLoadBalancerMonitorOptions ¶
type DeleteLoadBalancerMonitorOptions struct { // monitor identifier. MonitorIdentifier *string `json:"monitor_identifier" validate:"required,ne="` // Allows users to set headers on API requests Headers map[string]string }
DeleteLoadBalancerMonitorOptions : The DeleteLoadBalancerMonitor options.
func (*DeleteLoadBalancerMonitorOptions) SetHeaders ¶
func (options *DeleteLoadBalancerMonitorOptions) SetHeaders(param map[string]string) *DeleteLoadBalancerMonitorOptions
SetHeaders : Allow user to set Headers
func (*DeleteLoadBalancerMonitorOptions) SetMonitorIdentifier ¶
func (options *DeleteLoadBalancerMonitorOptions) SetMonitorIdentifier(monitorIdentifier string) *DeleteLoadBalancerMonitorOptions
SetMonitorIdentifier : Allow user to set MonitorIdentifier
type DeleteMonitorResp ¶
type DeleteMonitorResp struct { // success response. Success *bool `json:"success" validate:"required"` // errors. Errors [][]string `json:"errors" validate:"required"` // messages. Messages [][]string `json:"messages" validate:"required"` // result. Result *DeleteMonitorRespResult `json:"result" validate:"required"` }
DeleteMonitorResp : delete monitor response object.
type DeleteMonitorRespResult ¶
type DeleteMonitorRespResult struct { // identifier. ID *string `json:"id" validate:"required"` }
DeleteMonitorRespResult : result.
type EditLoadBalancerMonitorOptions ¶
type EditLoadBalancerMonitorOptions struct { // monitor identifier. MonitorIdentifier *string `json:"monitor_identifier" validate:"required,ne="` // http type. Type *string `json:"type,omitempty"` // login page monitor. Description *string `json:"description,omitempty"` // method. Method *string `json:"method,omitempty"` // port number. Port *int64 `json:"port,omitempty"` // path. Path *string `json:"path,omitempty"` // timeout count. Timeout *int64 `json:"timeout,omitempty"` // retry count. Retries *int64 `json:"retries,omitempty"` // interval. Interval *int64 `json:"interval,omitempty"` // expected codes. ExpectedCodes *string `json:"expected_codes,omitempty"` // follow redirects. FollowRedirects *bool `json:"follow_redirects,omitempty"` // expected body. ExpectedBody *string `json:"expected_body,omitempty"` // allow insecure. AllowInsecure *bool `json:"allow_insecure,omitempty"` // header. Header map[string][]string `json:"header,omitempty"` // Allows users to set headers on API requests Headers map[string]string }
EditLoadBalancerMonitorOptions : The EditLoadBalancerMonitor options.
func (*EditLoadBalancerMonitorOptions) SetAllowInsecure ¶
func (options *EditLoadBalancerMonitorOptions) SetAllowInsecure(allowInsecure bool) *EditLoadBalancerMonitorOptions
SetAllowInsecure : Allow user to set AllowInsecure
func (*EditLoadBalancerMonitorOptions) SetDescription ¶
func (options *EditLoadBalancerMonitorOptions) SetDescription(description string) *EditLoadBalancerMonitorOptions
SetDescription : Allow user to set Description
func (*EditLoadBalancerMonitorOptions) SetExpectedBody ¶
func (options *EditLoadBalancerMonitorOptions) SetExpectedBody(expectedBody string) *EditLoadBalancerMonitorOptions
SetExpectedBody : Allow user to set ExpectedBody
func (*EditLoadBalancerMonitorOptions) SetExpectedCodes ¶
func (options *EditLoadBalancerMonitorOptions) SetExpectedCodes(expectedCodes string) *EditLoadBalancerMonitorOptions
SetExpectedCodes : Allow user to set ExpectedCodes
func (*EditLoadBalancerMonitorOptions) SetFollowRedirects ¶
func (options *EditLoadBalancerMonitorOptions) SetFollowRedirects(followRedirects bool) *EditLoadBalancerMonitorOptions
SetFollowRedirects : Allow user to set FollowRedirects
func (*EditLoadBalancerMonitorOptions) SetHeader ¶ added in v0.5.0
func (options *EditLoadBalancerMonitorOptions) SetHeader(header map[string][]string) *EditLoadBalancerMonitorOptions
SetHeader : Allow user to set Header
func (*EditLoadBalancerMonitorOptions) SetHeaders ¶
func (options *EditLoadBalancerMonitorOptions) SetHeaders(param map[string]string) *EditLoadBalancerMonitorOptions
SetHeaders : Allow user to set Headers
func (*EditLoadBalancerMonitorOptions) SetInterval ¶
func (options *EditLoadBalancerMonitorOptions) SetInterval(interval int64) *EditLoadBalancerMonitorOptions
SetInterval : Allow user to set Interval
func (*EditLoadBalancerMonitorOptions) SetMethod ¶
func (options *EditLoadBalancerMonitorOptions) SetMethod(method string) *EditLoadBalancerMonitorOptions
SetMethod : Allow user to set Method
func (*EditLoadBalancerMonitorOptions) SetMonitorIdentifier ¶
func (options *EditLoadBalancerMonitorOptions) SetMonitorIdentifier(monitorIdentifier string) *EditLoadBalancerMonitorOptions
SetMonitorIdentifier : Allow user to set MonitorIdentifier
func (*EditLoadBalancerMonitorOptions) SetPath ¶
func (options *EditLoadBalancerMonitorOptions) SetPath(path string) *EditLoadBalancerMonitorOptions
SetPath : Allow user to set Path
func (*EditLoadBalancerMonitorOptions) SetPort ¶
func (options *EditLoadBalancerMonitorOptions) SetPort(port int64) *EditLoadBalancerMonitorOptions
SetPort : Allow user to set Port
func (*EditLoadBalancerMonitorOptions) SetRetries ¶
func (options *EditLoadBalancerMonitorOptions) SetRetries(retries int64) *EditLoadBalancerMonitorOptions
SetRetries : Allow user to set Retries
func (*EditLoadBalancerMonitorOptions) SetTimeout ¶
func (options *EditLoadBalancerMonitorOptions) SetTimeout(timeout int64) *EditLoadBalancerMonitorOptions
SetTimeout : Allow user to set Timeout
func (*EditLoadBalancerMonitorOptions) SetType ¶
func (options *EditLoadBalancerMonitorOptions) SetType(typeVar string) *EditLoadBalancerMonitorOptions
SetType : Allow user to set Type
type GetLoadBalancerMonitorOptions ¶
type GetLoadBalancerMonitorOptions struct { // monitor identifier. MonitorIdentifier *string `json:"monitor_identifier" validate:"required,ne="` // Allows users to set headers on API requests Headers map[string]string }
GetLoadBalancerMonitorOptions : The GetLoadBalancerMonitor options.
func (*GetLoadBalancerMonitorOptions) SetHeaders ¶
func (options *GetLoadBalancerMonitorOptions) SetHeaders(param map[string]string) *GetLoadBalancerMonitorOptions
SetHeaders : Allow user to set Headers
func (*GetLoadBalancerMonitorOptions) SetMonitorIdentifier ¶
func (options *GetLoadBalancerMonitorOptions) SetMonitorIdentifier(monitorIdentifier string) *GetLoadBalancerMonitorOptions
SetMonitorIdentifier : Allow user to set MonitorIdentifier
type GlobalLoadBalancerMonitorV1 ¶
type GlobalLoadBalancerMonitorV1 struct { Service *core.BaseService // Full CRN of the service instance. Crn *string }
GlobalLoadBalancerMonitorV1 : Global Load Balancer Monitor
Version: 1.0.1
func NewGlobalLoadBalancerMonitorV1 ¶
func NewGlobalLoadBalancerMonitorV1(options *GlobalLoadBalancerMonitorV1Options) (service *GlobalLoadBalancerMonitorV1, err error)
NewGlobalLoadBalancerMonitorV1 : constructs an instance of GlobalLoadBalancerMonitorV1 with passed in options.
func NewGlobalLoadBalancerMonitorV1UsingExternalConfig ¶
func NewGlobalLoadBalancerMonitorV1UsingExternalConfig(options *GlobalLoadBalancerMonitorV1Options) (globalLoadBalancerMonitor *GlobalLoadBalancerMonitorV1, err error)
NewGlobalLoadBalancerMonitorV1UsingExternalConfig : constructs an instance of GlobalLoadBalancerMonitorV1 with passed in options and external configuration.
func (*GlobalLoadBalancerMonitorV1) Clone ¶ added in v0.12.1
func (globalLoadBalancerMonitor *GlobalLoadBalancerMonitorV1) Clone() *GlobalLoadBalancerMonitorV1
Clone makes a copy of "globalLoadBalancerMonitor" suitable for processing requests.
func (*GlobalLoadBalancerMonitorV1) CreateLoadBalancerMonitor ¶
func (globalLoadBalancerMonitor *GlobalLoadBalancerMonitorV1) CreateLoadBalancerMonitor(createLoadBalancerMonitorOptions *CreateLoadBalancerMonitorOptions) (result *MonitorResp, response *core.DetailedResponse, err error)
CreateLoadBalancerMonitor : Create load balancer monitor Create a load balancer monitor for a given service instance.
func (*GlobalLoadBalancerMonitorV1) CreateLoadBalancerMonitorWithContext ¶ added in v0.12.1
func (globalLoadBalancerMonitor *GlobalLoadBalancerMonitorV1) CreateLoadBalancerMonitorWithContext(ctx context.Context, createLoadBalancerMonitorOptions *CreateLoadBalancerMonitorOptions) (result *MonitorResp, response *core.DetailedResponse, err error)
CreateLoadBalancerMonitorWithContext is an alternate form of the CreateLoadBalancerMonitor method which supports a Context parameter
func (*GlobalLoadBalancerMonitorV1) DeleteLoadBalancerMonitor ¶
func (globalLoadBalancerMonitor *GlobalLoadBalancerMonitorV1) DeleteLoadBalancerMonitor(deleteLoadBalancerMonitorOptions *DeleteLoadBalancerMonitorOptions) (result *DeleteMonitorResp, response *core.DetailedResponse, err error)
DeleteLoadBalancerMonitor : Delete load balancer monitor Delete a load balancer monitor.
func (*GlobalLoadBalancerMonitorV1) DeleteLoadBalancerMonitorWithContext ¶ added in v0.12.1
func (globalLoadBalancerMonitor *GlobalLoadBalancerMonitorV1) DeleteLoadBalancerMonitorWithContext(ctx context.Context, deleteLoadBalancerMonitorOptions *DeleteLoadBalancerMonitorOptions) (result *DeleteMonitorResp, response *core.DetailedResponse, err error)
DeleteLoadBalancerMonitorWithContext is an alternate form of the DeleteLoadBalancerMonitor method which supports a Context parameter
func (*GlobalLoadBalancerMonitorV1) DisableRetries ¶ added in v0.12.1
func (globalLoadBalancerMonitor *GlobalLoadBalancerMonitorV1) DisableRetries()
DisableRetries disables automatic retries for requests invoked for this service instance.
func (*GlobalLoadBalancerMonitorV1) EditLoadBalancerMonitor ¶
func (globalLoadBalancerMonitor *GlobalLoadBalancerMonitorV1) EditLoadBalancerMonitor(editLoadBalancerMonitorOptions *EditLoadBalancerMonitorOptions) (result *MonitorResp, response *core.DetailedResponse, err error)
EditLoadBalancerMonitor : Edit load balancer monitor Edit porperties of an existing load balancer monitor.
func (*GlobalLoadBalancerMonitorV1) EditLoadBalancerMonitorWithContext ¶ added in v0.12.1
func (globalLoadBalancerMonitor *GlobalLoadBalancerMonitorV1) EditLoadBalancerMonitorWithContext(ctx context.Context, editLoadBalancerMonitorOptions *EditLoadBalancerMonitorOptions) (result *MonitorResp, response *core.DetailedResponse, err error)
EditLoadBalancerMonitorWithContext is an alternate form of the EditLoadBalancerMonitor method which supports a Context parameter
func (*GlobalLoadBalancerMonitorV1) EnableRetries ¶ added in v0.12.1
func (globalLoadBalancerMonitor *GlobalLoadBalancerMonitorV1) EnableRetries(maxRetries int, maxRetryInterval time.Duration)
EnableRetries enables automatic retries for requests invoked for this service instance. If either parameter is specified as 0, then a default value is used instead.
func (*GlobalLoadBalancerMonitorV1) GetEnableGzipCompression ¶ added in v0.12.1
func (globalLoadBalancerMonitor *GlobalLoadBalancerMonitorV1) GetEnableGzipCompression() bool
GetEnableGzipCompression returns the service's EnableGzipCompression field
func (*GlobalLoadBalancerMonitorV1) GetLoadBalancerMonitor ¶
func (globalLoadBalancerMonitor *GlobalLoadBalancerMonitorV1) GetLoadBalancerMonitor(getLoadBalancerMonitorOptions *GetLoadBalancerMonitorOptions) (result *MonitorResp, response *core.DetailedResponse, err error)
GetLoadBalancerMonitor : Get load balancer monitor For a given service instance and load balancer monitor id, get the monitor details.
func (*GlobalLoadBalancerMonitorV1) GetLoadBalancerMonitorWithContext ¶ added in v0.12.1
func (globalLoadBalancerMonitor *GlobalLoadBalancerMonitorV1) GetLoadBalancerMonitorWithContext(ctx context.Context, getLoadBalancerMonitorOptions *GetLoadBalancerMonitorOptions) (result *MonitorResp, response *core.DetailedResponse, err error)
GetLoadBalancerMonitorWithContext is an alternate form of the GetLoadBalancerMonitor method which supports a Context parameter
func (*GlobalLoadBalancerMonitorV1) GetServiceURL ¶ added in v0.12.1
func (globalLoadBalancerMonitor *GlobalLoadBalancerMonitorV1) GetServiceURL() string
GetServiceURL returns the service URL
func (*GlobalLoadBalancerMonitorV1) ListAllLoadBalancerMonitors ¶
func (globalLoadBalancerMonitor *GlobalLoadBalancerMonitorV1) ListAllLoadBalancerMonitors(listAllLoadBalancerMonitorsOptions *ListAllLoadBalancerMonitorsOptions) (result *ListMonitorResp, response *core.DetailedResponse, err error)
ListAllLoadBalancerMonitors : List all load balancer monitors List configured load balancer monitors for a user.
func (*GlobalLoadBalancerMonitorV1) ListAllLoadBalancerMonitorsWithContext ¶ added in v0.12.1
func (globalLoadBalancerMonitor *GlobalLoadBalancerMonitorV1) ListAllLoadBalancerMonitorsWithContext(ctx context.Context, listAllLoadBalancerMonitorsOptions *ListAllLoadBalancerMonitorsOptions) (result *ListMonitorResp, response *core.DetailedResponse, err error)
ListAllLoadBalancerMonitorsWithContext is an alternate form of the ListAllLoadBalancerMonitors method which supports a Context parameter
func (*GlobalLoadBalancerMonitorV1) NewCreateLoadBalancerMonitorOptions ¶
func (*GlobalLoadBalancerMonitorV1) NewCreateLoadBalancerMonitorOptions() *CreateLoadBalancerMonitorOptions
NewCreateLoadBalancerMonitorOptions : Instantiate CreateLoadBalancerMonitorOptions
func (*GlobalLoadBalancerMonitorV1) NewDeleteLoadBalancerMonitorOptions ¶
func (*GlobalLoadBalancerMonitorV1) NewDeleteLoadBalancerMonitorOptions(monitorIdentifier string) *DeleteLoadBalancerMonitorOptions
NewDeleteLoadBalancerMonitorOptions : Instantiate DeleteLoadBalancerMonitorOptions
func (*GlobalLoadBalancerMonitorV1) NewEditLoadBalancerMonitorOptions ¶
func (*GlobalLoadBalancerMonitorV1) NewEditLoadBalancerMonitorOptions(monitorIdentifier string) *EditLoadBalancerMonitorOptions
NewEditLoadBalancerMonitorOptions : Instantiate EditLoadBalancerMonitorOptions
func (*GlobalLoadBalancerMonitorV1) NewGetLoadBalancerMonitorOptions ¶
func (*GlobalLoadBalancerMonitorV1) NewGetLoadBalancerMonitorOptions(monitorIdentifier string) *GetLoadBalancerMonitorOptions
NewGetLoadBalancerMonitorOptions : Instantiate GetLoadBalancerMonitorOptions
func (*GlobalLoadBalancerMonitorV1) NewListAllLoadBalancerMonitorsOptions ¶
func (*GlobalLoadBalancerMonitorV1) NewListAllLoadBalancerMonitorsOptions() *ListAllLoadBalancerMonitorsOptions
NewListAllLoadBalancerMonitorsOptions : Instantiate ListAllLoadBalancerMonitorsOptions
func (*GlobalLoadBalancerMonitorV1) SetDefaultHeaders ¶ added in v0.12.1
func (globalLoadBalancerMonitor *GlobalLoadBalancerMonitorV1) SetDefaultHeaders(headers http.Header)
SetDefaultHeaders sets HTTP headers to be sent in every request
func (*GlobalLoadBalancerMonitorV1) SetEnableGzipCompression ¶ added in v0.12.1
func (globalLoadBalancerMonitor *GlobalLoadBalancerMonitorV1) SetEnableGzipCompression(enableGzip bool)
SetEnableGzipCompression sets the service's EnableGzipCompression field
func (*GlobalLoadBalancerMonitorV1) SetServiceURL ¶
func (globalLoadBalancerMonitor *GlobalLoadBalancerMonitorV1) SetServiceURL(url string) error
SetServiceURL sets the service URL
type GlobalLoadBalancerMonitorV1Options ¶
type GlobalLoadBalancerMonitorV1Options struct { ServiceName string URL string Authenticator core.Authenticator // Full CRN of the service instance. Crn *string `validate:"required"` }
GlobalLoadBalancerMonitorV1Options : Service options
type ListAllLoadBalancerMonitorsOptions ¶
type ListAllLoadBalancerMonitorsOptions struct { // Allows users to set headers on API requests Headers map[string]string }
ListAllLoadBalancerMonitorsOptions : The ListAllLoadBalancerMonitors options.
func (*ListAllLoadBalancerMonitorsOptions) SetHeaders ¶
func (options *ListAllLoadBalancerMonitorsOptions) SetHeaders(param map[string]string) *ListAllLoadBalancerMonitorsOptions
SetHeaders : Allow user to set Headers
type ListMonitorResp ¶
type ListMonitorResp struct { // success response. Success *bool `json:"success" validate:"required"` // errors. Errors [][]string `json:"errors" validate:"required"` // messages. Messages [][]string `json:"messages" validate:"required"` // result. Result []MonitorPack `json:"result" validate:"required"` // result information. ResultInfo *ResultInfo `json:"result_info" validate:"required"` }
ListMonitorResp : monitor list response.
type MonitorPack ¶
type MonitorPack struct { // identifier. ID *string `json:"id,omitempty"` // created date. CreatedOn *string `json:"created_on,omitempty"` // modified date. ModifiedOn *string `json:"modified_on,omitempty"` // type. Type *string `json:"type,omitempty"` // login page. Description *string `json:"description,omitempty"` // method name. Method *string `json:"method,omitempty"` // port number. Port *int64 `json:"port,omitempty"` // path. Path *string `json:"path,omitempty"` // timeout count. Timeout *int64 `json:"timeout,omitempty"` // retries count. Retries *int64 `json:"retries,omitempty"` // interval. Interval *int64 `json:"interval,omitempty"` // expected body. ExpectedBody *string `json:"expected_body" validate:"required"` // expected codes. ExpectedCodes *string `json:"expected_codes" validate:"required"` // follow redirects. FollowRedirects *bool `json:"follow_redirects,omitempty"` // allow insecure. AllowInsecure *bool `json:"allow_insecure,omitempty"` // header. Header map[string][]string `json:"header,omitempty"` }
MonitorPack : monitor package.
type MonitorResp ¶
type MonitorResp struct { // success response. Success *bool `json:"success" validate:"required"` // errors. Errors [][]string `json:"errors" validate:"required"` // messages. Messages [][]string `json:"messages" validate:"required"` // monitor package. Result *MonitorPack `json:"result" validate:"required"` }
MonitorResp : monitor response.
type ResultInfo ¶
type ResultInfo struct { // page number. Page *int64 `json:"page" validate:"required"` // per page number. PerPage *int64 `json:"per_page" validate:"required"` // count. Count *int64 `json:"count" validate:"required"` // total count. TotalCount *int64 `json:"total_count" validate:"required"` }
ResultInfo : result information.