Versions in this module Expand all Collapse all v0 v0.29.0 May 17, 2022 Changes in this version + const CreateTargetOptionsTargetTypeCloudObjectStorageConst + const DefaultServiceName + const DefaultServiceURL + const ReplaceTargetOptionsTargetTypeCloudObjectStorageConst + const TargetTargetTypeCloudObjectStorageConst + func GetServiceURLForRegion(region string) (string, error) + func UnmarshalAPIEndpoint(m map[string]json.RawMessage, result interface{}) (err error) + func UnmarshalCosEndpoint(m map[string]json.RawMessage, result interface{}) (err error) + func UnmarshalCosWriteStatus(m map[string]json.RawMessage, result interface{}) (err error) + func UnmarshalEndpoints(m map[string]json.RawMessage, result interface{}) (err error) + func UnmarshalEndpointsRequestAPIEndpoint(m map[string]json.RawMessage, result interface{}) (err error) + func UnmarshalRoute(m map[string]json.RawMessage, result interface{}) (err error) + func UnmarshalRouteList(m map[string]json.RawMessage, result interface{}) (err error) + func UnmarshalRule(m map[string]json.RawMessage, result interface{}) (err error) + func UnmarshalTarget(m map[string]json.RawMessage, result interface{}) (err error) + func UnmarshalTargetList(m map[string]json.RawMessage, result interface{}) (err error) + func UnmarshalWarning(m map[string]json.RawMessage, result interface{}) (err error) + func UnmarshalWarningReport(m map[string]json.RawMessage, result interface{}) (err error) + type APIEndpoint struct + PrivateEnabled *bool + PrivateURL *string + PublicEnabled *bool + PublicURL *string + type AtrackerV1 struct + Service *core.BaseService + func NewAtrackerV1(options *AtrackerV1Options) (service *AtrackerV1, err error) + func NewAtrackerV1UsingExternalConfig(options *AtrackerV1Options) (atracker *AtrackerV1, err error) + func (*AtrackerV1) NewCosEndpoint(endpoint string, targetCRN string, bucket string, apiKey string) (_model *CosEndpoint, err error) + func (*AtrackerV1) NewCreateRouteOptions(name string, receiveGlobalEvents bool, rules []Rule) *CreateRouteOptions + func (*AtrackerV1) NewCreateTargetOptions(name string, targetType string, cosEndpoint *CosEndpoint) *CreateTargetOptions + func (*AtrackerV1) NewDeleteRouteOptions(id string) *DeleteRouteOptions + func (*AtrackerV1) NewDeleteTargetOptions(id string) *DeleteTargetOptions + func (*AtrackerV1) NewGetEndpointsOptions() *GetEndpointsOptions + func (*AtrackerV1) NewGetRouteOptions(id string) *GetRouteOptions + func (*AtrackerV1) NewGetTargetOptions(id string) *GetTargetOptions + func (*AtrackerV1) NewListRoutesOptions() *ListRoutesOptions + func (*AtrackerV1) NewListTargetsOptions() *ListTargetsOptions + func (*AtrackerV1) NewPatchEndpointsOptions() *PatchEndpointsOptions + func (*AtrackerV1) NewReplaceRouteOptions(id string, name string, receiveGlobalEvents bool, rules []Rule) *ReplaceRouteOptions + func (*AtrackerV1) NewReplaceTargetOptions(id string, name string, targetType string, cosEndpoint *CosEndpoint) *ReplaceTargetOptions + func (*AtrackerV1) NewRule(targetIds []string) (_model *Rule, err error) + func (*AtrackerV1) NewValidateTargetOptions(id string) *ValidateTargetOptions + func (atracker *AtrackerV1) Clone() *AtrackerV1 + func (atracker *AtrackerV1) CreateRoute(createRouteOptions *CreateRouteOptions) (result *Route, response *core.DetailedResponse, err error) + func (atracker *AtrackerV1) CreateRouteWithContext(ctx context.Context, createRouteOptions *CreateRouteOptions) (result *Route, response *core.DetailedResponse, err error) + func (atracker *AtrackerV1) CreateTarget(createTargetOptions *CreateTargetOptions) (result *Target, response *core.DetailedResponse, err error) + func (atracker *AtrackerV1) CreateTargetWithContext(ctx context.Context, createTargetOptions *CreateTargetOptions) (result *Target, response *core.DetailedResponse, err error) + func (atracker *AtrackerV1) DeleteRoute(deleteRouteOptions *DeleteRouteOptions) (response *core.DetailedResponse, err error) + func (atracker *AtrackerV1) DeleteRouteWithContext(ctx context.Context, deleteRouteOptions *DeleteRouteOptions) (response *core.DetailedResponse, err error) + func (atracker *AtrackerV1) DeleteTarget(deleteTargetOptions *DeleteTargetOptions) (result *WarningReport, response *core.DetailedResponse, err error) + func (atracker *AtrackerV1) DeleteTargetWithContext(ctx context.Context, deleteTargetOptions *DeleteTargetOptions) (result *WarningReport, response *core.DetailedResponse, err error) + func (atracker *AtrackerV1) DisableRetries() + func (atracker *AtrackerV1) EnableRetries(maxRetries int, maxRetryInterval time.Duration) + func (atracker *AtrackerV1) GetEnableGzipCompression() bool + func (atracker *AtrackerV1) GetEndpoints(getEndpointsOptions *GetEndpointsOptions) (result *Endpoints, response *core.DetailedResponse, err error) + func (atracker *AtrackerV1) GetEndpointsWithContext(ctx context.Context, getEndpointsOptions *GetEndpointsOptions) (result *Endpoints, response *core.DetailedResponse, err error) + func (atracker *AtrackerV1) GetRoute(getRouteOptions *GetRouteOptions) (result *Route, response *core.DetailedResponse, err error) + func (atracker *AtrackerV1) GetRouteWithContext(ctx context.Context, getRouteOptions *GetRouteOptions) (result *Route, response *core.DetailedResponse, err error) + func (atracker *AtrackerV1) GetServiceURL() string + func (atracker *AtrackerV1) GetTarget(getTargetOptions *GetTargetOptions) (result *Target, response *core.DetailedResponse, err error) + func (atracker *AtrackerV1) GetTargetWithContext(ctx context.Context, getTargetOptions *GetTargetOptions) (result *Target, response *core.DetailedResponse, err error) + func (atracker *AtrackerV1) ListRoutes(listRoutesOptions *ListRoutesOptions) (result *RouteList, response *core.DetailedResponse, err error) + func (atracker *AtrackerV1) ListRoutesWithContext(ctx context.Context, listRoutesOptions *ListRoutesOptions) (result *RouteList, response *core.DetailedResponse, err error) + func (atracker *AtrackerV1) ListTargets(listTargetsOptions *ListTargetsOptions) (result *TargetList, response *core.DetailedResponse, err error) + func (atracker *AtrackerV1) ListTargetsWithContext(ctx context.Context, listTargetsOptions *ListTargetsOptions) (result *TargetList, response *core.DetailedResponse, err error) + func (atracker *AtrackerV1) PatchEndpoints(patchEndpointsOptions *PatchEndpointsOptions) (result *Endpoints, response *core.DetailedResponse, err error) + func (atracker *AtrackerV1) PatchEndpointsWithContext(ctx context.Context, patchEndpointsOptions *PatchEndpointsOptions) (result *Endpoints, response *core.DetailedResponse, err error) + func (atracker *AtrackerV1) ReplaceRoute(replaceRouteOptions *ReplaceRouteOptions) (result *Route, response *core.DetailedResponse, err error) + func (atracker *AtrackerV1) ReplaceRouteWithContext(ctx context.Context, replaceRouteOptions *ReplaceRouteOptions) (result *Route, response *core.DetailedResponse, err error) + func (atracker *AtrackerV1) ReplaceTarget(replaceTargetOptions *ReplaceTargetOptions) (result *Target, response *core.DetailedResponse, err error) + func (atracker *AtrackerV1) ReplaceTargetWithContext(ctx context.Context, replaceTargetOptions *ReplaceTargetOptions) (result *Target, response *core.DetailedResponse, err error) + func (atracker *AtrackerV1) SetDefaultHeaders(headers http.Header) + func (atracker *AtrackerV1) SetEnableGzipCompression(enableGzip bool) + func (atracker *AtrackerV1) SetServiceURL(url string) error + func (atracker *AtrackerV1) ValidateTarget(validateTargetOptions *ValidateTargetOptions) (result *Target, response *core.DetailedResponse, err error) + func (atracker *AtrackerV1) ValidateTargetWithContext(ctx context.Context, validateTargetOptions *ValidateTargetOptions) (result *Target, response *core.DetailedResponse, err error) + type AtrackerV1Options struct + Authenticator core.Authenticator + ServiceName string + URL string + type CosEndpoint struct + APIKey *string + Bucket *string + Endpoint *string + TargetCRN *string + type CosWriteStatus struct + LastFailure *strfmt.DateTime + ReasonForLastFailure *string + Status *string + type CreateRouteOptions struct + Headers map[string]string + Name *string + ReceiveGlobalEvents *bool + Rules []Rule + func (_options *CreateRouteOptions) SetName(name string) *CreateRouteOptions + func (_options *CreateRouteOptions) SetReceiveGlobalEvents(receiveGlobalEvents bool) *CreateRouteOptions + func (_options *CreateRouteOptions) SetRules(rules []Rule) *CreateRouteOptions + func (options *CreateRouteOptions) SetHeaders(param map[string]string) *CreateRouteOptions + type CreateTargetOptions struct + CosEndpoint *CosEndpoint + Headers map[string]string + Name *string + TargetType *string + func (_options *CreateTargetOptions) SetCosEndpoint(cosEndpoint *CosEndpoint) *CreateTargetOptions + func (_options *CreateTargetOptions) SetName(name string) *CreateTargetOptions + func (_options *CreateTargetOptions) SetTargetType(targetType string) *CreateTargetOptions + func (options *CreateTargetOptions) SetHeaders(param map[string]string) *CreateTargetOptions + type DeleteRouteOptions struct + Headers map[string]string + ID *string + func (_options *DeleteRouteOptions) SetID(id string) *DeleteRouteOptions + func (options *DeleteRouteOptions) SetHeaders(param map[string]string) *DeleteRouteOptions + type DeleteTargetOptions struct + Headers map[string]string + ID *string + func (_options *DeleteTargetOptions) SetID(id string) *DeleteTargetOptions + func (options *DeleteTargetOptions) SetHeaders(param map[string]string) *DeleteTargetOptions + type Endpoints struct + APIEndpoint *APIEndpoint + type EndpointsRequestAPIEndpoint struct + PublicEnabled *bool + type GetEndpointsOptions struct + Headers map[string]string + func (options *GetEndpointsOptions) SetHeaders(param map[string]string) *GetEndpointsOptions + type GetRouteOptions struct + Headers map[string]string + ID *string + func (_options *GetRouteOptions) SetID(id string) *GetRouteOptions + func (options *GetRouteOptions) SetHeaders(param map[string]string) *GetRouteOptions + type GetTargetOptions struct + Headers map[string]string + ID *string + func (_options *GetTargetOptions) SetID(id string) *GetTargetOptions + func (options *GetTargetOptions) SetHeaders(param map[string]string) *GetTargetOptions + type ListRoutesOptions struct + Headers map[string]string + func (options *ListRoutesOptions) SetHeaders(param map[string]string) *ListRoutesOptions + type ListTargetsOptions struct + Headers map[string]string + func (options *ListTargetsOptions) SetHeaders(param map[string]string) *ListTargetsOptions + type PatchEndpointsOptions struct + APIEndpoint *EndpointsRequestAPIEndpoint + Headers map[string]string + func (_options *PatchEndpointsOptions) SetAPIEndpoint(apiEndpoint *EndpointsRequestAPIEndpoint) *PatchEndpointsOptions + func (options *PatchEndpointsOptions) SetHeaders(param map[string]string) *PatchEndpointsOptions + type ReplaceRouteOptions struct + Headers map[string]string + ID *string + Name *string + ReceiveGlobalEvents *bool + Rules []Rule + func (_options *ReplaceRouteOptions) SetID(id string) *ReplaceRouteOptions + func (_options *ReplaceRouteOptions) SetName(name string) *ReplaceRouteOptions + func (_options *ReplaceRouteOptions) SetReceiveGlobalEvents(receiveGlobalEvents bool) *ReplaceRouteOptions + func (_options *ReplaceRouteOptions) SetRules(rules []Rule) *ReplaceRouteOptions + func (options *ReplaceRouteOptions) SetHeaders(param map[string]string) *ReplaceRouteOptions + type ReplaceTargetOptions struct + CosEndpoint *CosEndpoint + Headers map[string]string + ID *string + Name *string + TargetType *string + func (_options *ReplaceTargetOptions) SetCosEndpoint(cosEndpoint *CosEndpoint) *ReplaceTargetOptions + func (_options *ReplaceTargetOptions) SetID(id string) *ReplaceTargetOptions + func (_options *ReplaceTargetOptions) SetName(name string) *ReplaceTargetOptions + func (_options *ReplaceTargetOptions) SetTargetType(targetType string) *ReplaceTargetOptions + func (options *ReplaceTargetOptions) SetHeaders(param map[string]string) *ReplaceTargetOptions + type Route struct + CRN *string + Created *strfmt.DateTime + ID *string + Name *string + ReceiveGlobalEvents *bool + Rules []Rule + Updated *strfmt.DateTime + Version *int64 + type RouteList struct + Routes []Route + type Rule struct + TargetIds []string + type Target struct + CRN *string + CosEndpoint *CosEndpoint + CosWriteStatus *CosWriteStatus + Created *strfmt.DateTime + EncryptKey *string + ID *string + Name *string + TargetType *string + Updated *strfmt.DateTime + type TargetList struct + Targets []Target + type ValidateTargetOptions struct + Headers map[string]string + ID *string + func (_options *ValidateTargetOptions) SetID(id string) *ValidateTargetOptions + func (options *ValidateTargetOptions) SetHeaders(param map[string]string) *ValidateTargetOptions + type Warning struct + Code *string + Message *string + type WarningReport struct + StatusCode *int64 + Trace *string + Warnings []Warning