channels

package
v2.12.0+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 30, 2020 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddChannelBody

type AddChannelBody struct {

	// Short human-readable summary.
	Summary string `json:"summary,omitempty"`

	// New channel status.
	Disabled bool `json:"disabled,omitempty"`

	// email config
	EmailConfig *AddChannelParamsBodyEmailConfig `json:"email_config,omitempty"`

	// pagerduty config
	PagerdutyConfig *AddChannelParamsBodyPagerdutyConfig `json:"pagerduty_config,omitempty"`

	// slack config
	SlackConfig *AddChannelParamsBodySlackConfig `json:"slack_config,omitempty"`

	// webhook config
	WebhookConfig *AddChannelParamsBodyWebhookConfig `json:"webhook_config,omitempty"`
}

AddChannelBody add channel body swagger:model AddChannelBody

func (*AddChannelBody) MarshalBinary

func (o *AddChannelBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AddChannelBody) UnmarshalBinary

func (o *AddChannelBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AddChannelBody) Validate

func (o *AddChannelBody) Validate(formats strfmt.Registry) error

Validate validates this add channel body

type AddChannelDefault

type AddChannelDefault struct {
	Payload *AddChannelDefaultBody
	// contains filtered or unexported fields
}

AddChannelDefault handles this case with default header values.

An unexpected error response.

func NewAddChannelDefault

func NewAddChannelDefault(code int) *AddChannelDefault

NewAddChannelDefault creates a AddChannelDefault with default headers values

func (*AddChannelDefault) Code

func (o *AddChannelDefault) Code() int

Code gets the status code for the add channel default response

func (*AddChannelDefault) Error

func (o *AddChannelDefault) Error() string

func (*AddChannelDefault) GetPayload

func (o *AddChannelDefault) GetPayload() *AddChannelDefaultBody

type AddChannelDefaultBody

type AddChannelDefaultBody struct {

	// error
	Error string `json:"error,omitempty"`

	// code
	Code int32 `json:"code,omitempty"`

	// message
	Message string `json:"message,omitempty"`

	// details
	Details []*DetailsItems0 `json:"details"`
}

AddChannelDefaultBody add channel default body swagger:model AddChannelDefaultBody

func (*AddChannelDefaultBody) MarshalBinary

func (o *AddChannelDefaultBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AddChannelDefaultBody) UnmarshalBinary

func (o *AddChannelDefaultBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AddChannelDefaultBody) Validate

func (o *AddChannelDefaultBody) Validate(formats strfmt.Registry) error

Validate validates this add channel default body

type AddChannelOK

type AddChannelOK struct {
	Payload *AddChannelOKBody
}

AddChannelOK handles this case with default header values.

A successful response.

func NewAddChannelOK

func NewAddChannelOK() *AddChannelOK

NewAddChannelOK creates a AddChannelOK with default headers values

func (*AddChannelOK) Error

func (o *AddChannelOK) Error() string

func (*AddChannelOK) GetPayload

func (o *AddChannelOK) GetPayload() *AddChannelOKBody

type AddChannelOKBody

type AddChannelOKBody struct {

	// Machine-readable ID.
	ChannelID string `json:"channel_id,omitempty"`
}

AddChannelOKBody add channel OK body swagger:model AddChannelOKBody

func (*AddChannelOKBody) MarshalBinary

func (o *AddChannelOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AddChannelOKBody) UnmarshalBinary

func (o *AddChannelOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AddChannelOKBody) Validate

func (o *AddChannelOKBody) Validate(formats strfmt.Registry) error

Validate validates this add channel OK body

type AddChannelParams

type AddChannelParams struct {

	/*Body*/
	Body AddChannelBody

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

AddChannelParams contains all the parameters to send to the API endpoint for the add channel operation typically these are written to a http.Request

func NewAddChannelParams

func NewAddChannelParams() *AddChannelParams

NewAddChannelParams creates a new AddChannelParams object with the default values initialized.

func NewAddChannelParamsWithContext

func NewAddChannelParamsWithContext(ctx context.Context) *AddChannelParams

NewAddChannelParamsWithContext creates a new AddChannelParams object with the default values initialized, and the ability to set a context for a request

func NewAddChannelParamsWithHTTPClient

func NewAddChannelParamsWithHTTPClient(client *http.Client) *AddChannelParams

NewAddChannelParamsWithHTTPClient creates a new AddChannelParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewAddChannelParamsWithTimeout

func NewAddChannelParamsWithTimeout(timeout time.Duration) *AddChannelParams

NewAddChannelParamsWithTimeout creates a new AddChannelParams object with the default values initialized, and the ability to set a timeout on a request

func (*AddChannelParams) SetBody

func (o *AddChannelParams) SetBody(body AddChannelBody)

SetBody adds the body to the add channel params

func (*AddChannelParams) SetContext

func (o *AddChannelParams) SetContext(ctx context.Context)

SetContext adds the context to the add channel params

func (*AddChannelParams) SetHTTPClient

func (o *AddChannelParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the add channel params

func (*AddChannelParams) SetTimeout

func (o *AddChannelParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the add channel params

func (*AddChannelParams) WithBody

WithBody adds the body to the add channel params

func (*AddChannelParams) WithContext

func (o *AddChannelParams) WithContext(ctx context.Context) *AddChannelParams

WithContext adds the context to the add channel params

func (*AddChannelParams) WithHTTPClient

func (o *AddChannelParams) WithHTTPClient(client *http.Client) *AddChannelParams

WithHTTPClient adds the HTTPClient to the add channel params

func (*AddChannelParams) WithTimeout

func (o *AddChannelParams) WithTimeout(timeout time.Duration) *AddChannelParams

WithTimeout adds the timeout to the add channel params

func (*AddChannelParams) WriteToRequest

func (o *AddChannelParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type AddChannelParamsBodyEmailConfig

type AddChannelParamsBodyEmailConfig struct {

	// send resolved
	SendResolved bool `json:"send_resolved,omitempty"`

	// to
	To []string `json:"to"`
}

AddChannelParamsBodyEmailConfig EmailConfig represents email configuration. swagger:model AddChannelParamsBodyEmailConfig

func (*AddChannelParamsBodyEmailConfig) MarshalBinary

func (o *AddChannelParamsBodyEmailConfig) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AddChannelParamsBodyEmailConfig) UnmarshalBinary

func (o *AddChannelParamsBodyEmailConfig) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AddChannelParamsBodyEmailConfig) Validate

Validate validates this add channel params body email config

type AddChannelParamsBodyPagerdutyConfig

type AddChannelParamsBodyPagerdutyConfig struct {

	// send resolved
	SendResolved bool `json:"send_resolved,omitempty"`

	// The PagerDuty key for "Events API v2" integration type. Exactly one key should be set.
	RoutingKey string `json:"routing_key,omitempty"`

	// The PagerDuty key for "Prometheus" integration type. Exactly one key should be set.
	ServiceKey string `json:"service_key,omitempty"`
}

AddChannelParamsBodyPagerdutyConfig PagerDutyConfig represents PagerDuty configuration. swagger:model AddChannelParamsBodyPagerdutyConfig

func (*AddChannelParamsBodyPagerdutyConfig) MarshalBinary

func (o *AddChannelParamsBodyPagerdutyConfig) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AddChannelParamsBodyPagerdutyConfig) UnmarshalBinary

func (o *AddChannelParamsBodyPagerdutyConfig) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AddChannelParamsBodyPagerdutyConfig) Validate

Validate validates this add channel params body pagerduty config

type AddChannelParamsBodySlackConfig

type AddChannelParamsBodySlackConfig struct {

	// send resolved
	SendResolved bool `json:"send_resolved,omitempty"`

	// channel
	Channel string `json:"channel,omitempty"`
}

AddChannelParamsBodySlackConfig SlackConfig represents Slack configuration. swagger:model AddChannelParamsBodySlackConfig

func (*AddChannelParamsBodySlackConfig) MarshalBinary

func (o *AddChannelParamsBodySlackConfig) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AddChannelParamsBodySlackConfig) UnmarshalBinary

func (o *AddChannelParamsBodySlackConfig) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AddChannelParamsBodySlackConfig) Validate

Validate validates this add channel params body slack config

type AddChannelParamsBodyWebhookConfig

type AddChannelParamsBodyWebhookConfig struct {

	// send resolved
	SendResolved bool `json:"send_resolved,omitempty"`

	// url
	URL string `json:"url,omitempty"`

	// max alerts
	MaxAlerts int32 `json:"max_alerts,omitempty"`

	// http config
	HTTPConfig *AddChannelParamsBodyWebhookConfigHTTPConfig `json:"http_config,omitempty"`
}

AddChannelParamsBodyWebhookConfig WebhookConfig represents webhook configuration. swagger:model AddChannelParamsBodyWebhookConfig

func (*AddChannelParamsBodyWebhookConfig) MarshalBinary

func (o *AddChannelParamsBodyWebhookConfig) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AddChannelParamsBodyWebhookConfig) UnmarshalBinary

func (o *AddChannelParamsBodyWebhookConfig) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AddChannelParamsBodyWebhookConfig) Validate

Validate validates this add channel params body webhook config

type AddChannelParamsBodyWebhookConfigHTTPConfig

type AddChannelParamsBodyWebhookConfigHTTPConfig struct {

	// bearer token
	BearerToken string `json:"bearer_token,omitempty"`

	// bearer token file
	BearerTokenFile string `json:"bearer_token_file,omitempty"`

	// proxy url
	ProxyURL string `json:"proxy_url,omitempty"`

	// basic auth
	BasicAuth *AddChannelParamsBodyWebhookConfigHTTPConfigBasicAuth `json:"basic_auth,omitempty"`

	// tls config
	TLSConfig *AddChannelParamsBodyWebhookConfigHTTPConfigTLSConfig `json:"tls_config,omitempty"`
}

AddChannelParamsBodyWebhookConfigHTTPConfig HTTPConfig represents HTTP client configuration. swagger:model AddChannelParamsBodyWebhookConfigHTTPConfig

func (*AddChannelParamsBodyWebhookConfigHTTPConfig) MarshalBinary

func (o *AddChannelParamsBodyWebhookConfigHTTPConfig) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AddChannelParamsBodyWebhookConfigHTTPConfig) UnmarshalBinary

func (o *AddChannelParamsBodyWebhookConfigHTTPConfig) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AddChannelParamsBodyWebhookConfigHTTPConfig) Validate

Validate validates this add channel params body webhook config HTTP config

type AddChannelParamsBodyWebhookConfigHTTPConfigBasicAuth

type AddChannelParamsBodyWebhookConfigHTTPConfigBasicAuth struct {

	// username
	Username string `json:"username,omitempty"`

	// password
	Password string `json:"password,omitempty"`

	// password file
	PasswordFile string `json:"password_file,omitempty"`
}

AddChannelParamsBodyWebhookConfigHTTPConfigBasicAuth BasicAuth represents basic HTTP auth configuration. swagger:model AddChannelParamsBodyWebhookConfigHTTPConfigBasicAuth

func (*AddChannelParamsBodyWebhookConfigHTTPConfigBasicAuth) MarshalBinary

MarshalBinary interface implementation

func (*AddChannelParamsBodyWebhookConfigHTTPConfigBasicAuth) UnmarshalBinary

UnmarshalBinary interface implementation

func (*AddChannelParamsBodyWebhookConfigHTTPConfigBasicAuth) Validate

Validate validates this add channel params body webhook config HTTP config basic auth

type AddChannelParamsBodyWebhookConfigHTTPConfigTLSConfig

type AddChannelParamsBodyWebhookConfigHTTPConfigTLSConfig struct {

	// ca file
	CaFile string `json:"ca_file,omitempty"`

	// cert file
	CertFile string `json:"cert_file,omitempty"`

	// key file
	KeyFile string `json:"key_file,omitempty"`

	// server name
	ServerName string `json:"server_name,omitempty"`

	// insecure skip verify
	InsecureSkipVerify bool `json:"insecure_skip_verify,omitempty"`
}

AddChannelParamsBodyWebhookConfigHTTPConfigTLSConfig TLSConfig represents TLS configuration. swagger:model AddChannelParamsBodyWebhookConfigHTTPConfigTLSConfig

func (*AddChannelParamsBodyWebhookConfigHTTPConfigTLSConfig) MarshalBinary

MarshalBinary interface implementation

func (*AddChannelParamsBodyWebhookConfigHTTPConfigTLSConfig) UnmarshalBinary

UnmarshalBinary interface implementation

func (*AddChannelParamsBodyWebhookConfigHTTPConfigTLSConfig) Validate

Validate validates this add channel params body webhook config HTTP config TLS config

type AddChannelReader

type AddChannelReader struct {
	// contains filtered or unexported fields
}

AddChannelReader is a Reader for the AddChannel structure.

func (*AddChannelReader) ReadResponse

func (o *AddChannelReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type ChangeChannelBody

type ChangeChannelBody struct {

	// Machine-readable ID.
	ChannelID string `json:"channel_id,omitempty"`

	// Enables or disables that channel. Should be set.
	Disabled bool `json:"disabled,omitempty"`

	// email config
	EmailConfig *ChangeChannelParamsBodyEmailConfig `json:"email_config,omitempty"`

	// pagerduty config
	PagerdutyConfig *ChangeChannelParamsBodyPagerdutyConfig `json:"pagerduty_config,omitempty"`

	// slack config
	SlackConfig *ChangeChannelParamsBodySlackConfig `json:"slack_config,omitempty"`

	// webhook config
	WebhookConfig *ChangeChannelParamsBodyWebhookConfig `json:"webhook_config,omitempty"`
}

ChangeChannelBody change channel body swagger:model ChangeChannelBody

func (*ChangeChannelBody) MarshalBinary

func (o *ChangeChannelBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ChangeChannelBody) UnmarshalBinary

func (o *ChangeChannelBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ChangeChannelBody) Validate

func (o *ChangeChannelBody) Validate(formats strfmt.Registry) error

Validate validates this change channel body

type ChangeChannelDefault

type ChangeChannelDefault struct {
	Payload *ChangeChannelDefaultBody
	// contains filtered or unexported fields
}

ChangeChannelDefault handles this case with default header values.

An unexpected error response.

func NewChangeChannelDefault

func NewChangeChannelDefault(code int) *ChangeChannelDefault

NewChangeChannelDefault creates a ChangeChannelDefault with default headers values

func (*ChangeChannelDefault) Code

func (o *ChangeChannelDefault) Code() int

Code gets the status code for the change channel default response

func (*ChangeChannelDefault) Error

func (o *ChangeChannelDefault) Error() string

func (*ChangeChannelDefault) GetPayload

type ChangeChannelDefaultBody

type ChangeChannelDefaultBody struct {

	// error
	Error string `json:"error,omitempty"`

	// code
	Code int32 `json:"code,omitempty"`

	// message
	Message string `json:"message,omitempty"`

	// details
	Details []*DetailsItems0 `json:"details"`
}

ChangeChannelDefaultBody change channel default body swagger:model ChangeChannelDefaultBody

func (*ChangeChannelDefaultBody) MarshalBinary

func (o *ChangeChannelDefaultBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ChangeChannelDefaultBody) UnmarshalBinary

func (o *ChangeChannelDefaultBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ChangeChannelDefaultBody) Validate

func (o *ChangeChannelDefaultBody) Validate(formats strfmt.Registry) error

Validate validates this change channel default body

type ChangeChannelOK

type ChangeChannelOK struct {
	Payload interface{}
}

ChangeChannelOK handles this case with default header values.

A successful response.

func NewChangeChannelOK

func NewChangeChannelOK() *ChangeChannelOK

NewChangeChannelOK creates a ChangeChannelOK with default headers values

func (*ChangeChannelOK) Error

func (o *ChangeChannelOK) Error() string

func (*ChangeChannelOK) GetPayload

func (o *ChangeChannelOK) GetPayload() interface{}

type ChangeChannelParams

type ChangeChannelParams struct {

	/*Body*/
	Body ChangeChannelBody

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

ChangeChannelParams contains all the parameters to send to the API endpoint for the change channel operation typically these are written to a http.Request

func NewChangeChannelParams

func NewChangeChannelParams() *ChangeChannelParams

NewChangeChannelParams creates a new ChangeChannelParams object with the default values initialized.

func NewChangeChannelParamsWithContext

func NewChangeChannelParamsWithContext(ctx context.Context) *ChangeChannelParams

NewChangeChannelParamsWithContext creates a new ChangeChannelParams object with the default values initialized, and the ability to set a context for a request

func NewChangeChannelParamsWithHTTPClient

func NewChangeChannelParamsWithHTTPClient(client *http.Client) *ChangeChannelParams

NewChangeChannelParamsWithHTTPClient creates a new ChangeChannelParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewChangeChannelParamsWithTimeout

func NewChangeChannelParamsWithTimeout(timeout time.Duration) *ChangeChannelParams

NewChangeChannelParamsWithTimeout creates a new ChangeChannelParams object with the default values initialized, and the ability to set a timeout on a request

func (*ChangeChannelParams) SetBody

func (o *ChangeChannelParams) SetBody(body ChangeChannelBody)

SetBody adds the body to the change channel params

func (*ChangeChannelParams) SetContext

func (o *ChangeChannelParams) SetContext(ctx context.Context)

SetContext adds the context to the change channel params

func (*ChangeChannelParams) SetHTTPClient

func (o *ChangeChannelParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the change channel params

func (*ChangeChannelParams) SetTimeout

func (o *ChangeChannelParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the change channel params

func (*ChangeChannelParams) WithBody

WithBody adds the body to the change channel params

func (*ChangeChannelParams) WithContext

WithContext adds the context to the change channel params

func (*ChangeChannelParams) WithHTTPClient

func (o *ChangeChannelParams) WithHTTPClient(client *http.Client) *ChangeChannelParams

WithHTTPClient adds the HTTPClient to the change channel params

func (*ChangeChannelParams) WithTimeout

func (o *ChangeChannelParams) WithTimeout(timeout time.Duration) *ChangeChannelParams

WithTimeout adds the timeout to the change channel params

func (*ChangeChannelParams) WriteToRequest

func (o *ChangeChannelParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type ChangeChannelParamsBodyEmailConfig

type ChangeChannelParamsBodyEmailConfig struct {

	// send resolved
	SendResolved bool `json:"send_resolved,omitempty"`

	// to
	To []string `json:"to"`
}

ChangeChannelParamsBodyEmailConfig EmailConfig represents email configuration. swagger:model ChangeChannelParamsBodyEmailConfig

func (*ChangeChannelParamsBodyEmailConfig) MarshalBinary

func (o *ChangeChannelParamsBodyEmailConfig) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ChangeChannelParamsBodyEmailConfig) UnmarshalBinary

func (o *ChangeChannelParamsBodyEmailConfig) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ChangeChannelParamsBodyEmailConfig) Validate

Validate validates this change channel params body email config

type ChangeChannelParamsBodyPagerdutyConfig

type ChangeChannelParamsBodyPagerdutyConfig struct {

	// send resolved
	SendResolved bool `json:"send_resolved,omitempty"`

	// The PagerDuty key for "Events API v2" integration type. Exactly one key should be set.
	RoutingKey string `json:"routing_key,omitempty"`

	// The PagerDuty key for "Prometheus" integration type. Exactly one key should be set.
	ServiceKey string `json:"service_key,omitempty"`
}

ChangeChannelParamsBodyPagerdutyConfig PagerDutyConfig represents PagerDuty configuration. swagger:model ChangeChannelParamsBodyPagerdutyConfig

func (*ChangeChannelParamsBodyPagerdutyConfig) MarshalBinary

func (o *ChangeChannelParamsBodyPagerdutyConfig) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ChangeChannelParamsBodyPagerdutyConfig) UnmarshalBinary

func (o *ChangeChannelParamsBodyPagerdutyConfig) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ChangeChannelParamsBodyPagerdutyConfig) Validate

Validate validates this change channel params body pagerduty config

type ChangeChannelParamsBodySlackConfig

type ChangeChannelParamsBodySlackConfig struct {

	// send resolved
	SendResolved bool `json:"send_resolved,omitempty"`

	// channel
	Channel string `json:"channel,omitempty"`
}

ChangeChannelParamsBodySlackConfig SlackConfig represents Slack configuration. swagger:model ChangeChannelParamsBodySlackConfig

func (*ChangeChannelParamsBodySlackConfig) MarshalBinary

func (o *ChangeChannelParamsBodySlackConfig) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ChangeChannelParamsBodySlackConfig) UnmarshalBinary

func (o *ChangeChannelParamsBodySlackConfig) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ChangeChannelParamsBodySlackConfig) Validate

Validate validates this change channel params body slack config

type ChangeChannelParamsBodyWebhookConfig

type ChangeChannelParamsBodyWebhookConfig struct {

	// send resolved
	SendResolved bool `json:"send_resolved,omitempty"`

	// url
	URL string `json:"url,omitempty"`

	// max alerts
	MaxAlerts int32 `json:"max_alerts,omitempty"`

	// http config
	HTTPConfig *ChangeChannelParamsBodyWebhookConfigHTTPConfig `json:"http_config,omitempty"`
}

ChangeChannelParamsBodyWebhookConfig WebhookConfig represents webhook configuration. swagger:model ChangeChannelParamsBodyWebhookConfig

func (*ChangeChannelParamsBodyWebhookConfig) MarshalBinary

func (o *ChangeChannelParamsBodyWebhookConfig) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ChangeChannelParamsBodyWebhookConfig) UnmarshalBinary

func (o *ChangeChannelParamsBodyWebhookConfig) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ChangeChannelParamsBodyWebhookConfig) Validate

Validate validates this change channel params body webhook config

type ChangeChannelParamsBodyWebhookConfigHTTPConfig

type ChangeChannelParamsBodyWebhookConfigHTTPConfig struct {

	// bearer token
	BearerToken string `json:"bearer_token,omitempty"`

	// bearer token file
	BearerTokenFile string `json:"bearer_token_file,omitempty"`

	// proxy url
	ProxyURL string `json:"proxy_url,omitempty"`

	// basic auth
	BasicAuth *ChangeChannelParamsBodyWebhookConfigHTTPConfigBasicAuth `json:"basic_auth,omitempty"`

	// tls config
	TLSConfig *ChangeChannelParamsBodyWebhookConfigHTTPConfigTLSConfig `json:"tls_config,omitempty"`
}

ChangeChannelParamsBodyWebhookConfigHTTPConfig HTTPConfig represents HTTP client configuration. swagger:model ChangeChannelParamsBodyWebhookConfigHTTPConfig

func (*ChangeChannelParamsBodyWebhookConfigHTTPConfig) MarshalBinary

MarshalBinary interface implementation

func (*ChangeChannelParamsBodyWebhookConfigHTTPConfig) UnmarshalBinary

UnmarshalBinary interface implementation

func (*ChangeChannelParamsBodyWebhookConfigHTTPConfig) Validate

Validate validates this change channel params body webhook config HTTP config

type ChangeChannelParamsBodyWebhookConfigHTTPConfigBasicAuth

type ChangeChannelParamsBodyWebhookConfigHTTPConfigBasicAuth struct {

	// username
	Username string `json:"username,omitempty"`

	// password
	Password string `json:"password,omitempty"`

	// password file
	PasswordFile string `json:"password_file,omitempty"`
}

ChangeChannelParamsBodyWebhookConfigHTTPConfigBasicAuth BasicAuth represents basic HTTP auth configuration. swagger:model ChangeChannelParamsBodyWebhookConfigHTTPConfigBasicAuth

func (*ChangeChannelParamsBodyWebhookConfigHTTPConfigBasicAuth) MarshalBinary

MarshalBinary interface implementation

func (*ChangeChannelParamsBodyWebhookConfigHTTPConfigBasicAuth) UnmarshalBinary

UnmarshalBinary interface implementation

func (*ChangeChannelParamsBodyWebhookConfigHTTPConfigBasicAuth) Validate

Validate validates this change channel params body webhook config HTTP config basic auth

type ChangeChannelParamsBodyWebhookConfigHTTPConfigTLSConfig

type ChangeChannelParamsBodyWebhookConfigHTTPConfigTLSConfig struct {

	// ca file
	CaFile string `json:"ca_file,omitempty"`

	// cert file
	CertFile string `json:"cert_file,omitempty"`

	// key file
	KeyFile string `json:"key_file,omitempty"`

	// server name
	ServerName string `json:"server_name,omitempty"`

	// insecure skip verify
	InsecureSkipVerify bool `json:"insecure_skip_verify,omitempty"`
}

ChangeChannelParamsBodyWebhookConfigHTTPConfigTLSConfig TLSConfig represents TLS configuration. swagger:model ChangeChannelParamsBodyWebhookConfigHTTPConfigTLSConfig

func (*ChangeChannelParamsBodyWebhookConfigHTTPConfigTLSConfig) MarshalBinary

MarshalBinary interface implementation

func (*ChangeChannelParamsBodyWebhookConfigHTTPConfigTLSConfig) UnmarshalBinary

UnmarshalBinary interface implementation

func (*ChangeChannelParamsBodyWebhookConfigHTTPConfigTLSConfig) Validate

Validate validates this change channel params body webhook config HTTP config TLS config

type ChangeChannelReader

type ChangeChannelReader struct {
	// contains filtered or unexported fields
}

ChangeChannelReader is a Reader for the ChangeChannel structure.

func (*ChangeChannelReader) ReadResponse

func (o *ChangeChannelReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type ChannelsItems0

type ChannelsItems0 struct {

	// Machine-readable ID.
	ChannelID string `json:"channel_id,omitempty"`

	// Short human-readable summary.
	Summary string `json:"summary,omitempty"`

	// True if that channel is disabled.
	Disabled bool `json:"disabled,omitempty"`

	// email config
	EmailConfig *ChannelsItems0EmailConfig `json:"email_config,omitempty"`

	// pagerduty config
	PagerdutyConfig *ChannelsItems0PagerdutyConfig `json:"pagerduty_config,omitempty"`

	// slack config
	SlackConfig *ChannelsItems0SlackConfig `json:"slack_config,omitempty"`

	// webhook config
	WebhookConfig *ChannelsItems0WebhookConfig `json:"webhook_config,omitempty"`
}

ChannelsItems0 Channel represents a single Notification Channel. swagger:model ChannelsItems0

func (*ChannelsItems0) MarshalBinary

func (o *ChannelsItems0) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ChannelsItems0) UnmarshalBinary

func (o *ChannelsItems0) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ChannelsItems0) Validate

func (o *ChannelsItems0) Validate(formats strfmt.Registry) error

Validate validates this channels items0

type ChannelsItems0EmailConfig

type ChannelsItems0EmailConfig struct {

	// send resolved
	SendResolved bool `json:"send_resolved,omitempty"`

	// to
	To []string `json:"to"`
}

ChannelsItems0EmailConfig EmailConfig represents email configuration. swagger:model ChannelsItems0EmailConfig

func (*ChannelsItems0EmailConfig) MarshalBinary

func (o *ChannelsItems0EmailConfig) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ChannelsItems0EmailConfig) UnmarshalBinary

func (o *ChannelsItems0EmailConfig) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ChannelsItems0EmailConfig) Validate

func (o *ChannelsItems0EmailConfig) Validate(formats strfmt.Registry) error

Validate validates this channels items0 email config

type ChannelsItems0PagerdutyConfig

type ChannelsItems0PagerdutyConfig struct {

	// send resolved
	SendResolved bool `json:"send_resolved,omitempty"`

	// The PagerDuty key for "Events API v2" integration type. Exactly one key should be set.
	RoutingKey string `json:"routing_key,omitempty"`

	// The PagerDuty key for "Prometheus" integration type. Exactly one key should be set.
	ServiceKey string `json:"service_key,omitempty"`
}

ChannelsItems0PagerdutyConfig PagerDutyConfig represents PagerDuty configuration. swagger:model ChannelsItems0PagerdutyConfig

func (*ChannelsItems0PagerdutyConfig) MarshalBinary

func (o *ChannelsItems0PagerdutyConfig) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ChannelsItems0PagerdutyConfig) UnmarshalBinary

func (o *ChannelsItems0PagerdutyConfig) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ChannelsItems0PagerdutyConfig) Validate

func (o *ChannelsItems0PagerdutyConfig) Validate(formats strfmt.Registry) error

Validate validates this channels items0 pagerduty config

type ChannelsItems0SlackConfig

type ChannelsItems0SlackConfig struct {

	// send resolved
	SendResolved bool `json:"send_resolved,omitempty"`

	// channel
	Channel string `json:"channel,omitempty"`
}

ChannelsItems0SlackConfig SlackConfig represents Slack configuration. swagger:model ChannelsItems0SlackConfig

func (*ChannelsItems0SlackConfig) MarshalBinary

func (o *ChannelsItems0SlackConfig) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ChannelsItems0SlackConfig) UnmarshalBinary

func (o *ChannelsItems0SlackConfig) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ChannelsItems0SlackConfig) Validate

func (o *ChannelsItems0SlackConfig) Validate(formats strfmt.Registry) error

Validate validates this channels items0 slack config

type ChannelsItems0WebhookConfig

type ChannelsItems0WebhookConfig struct {

	// send resolved
	SendResolved bool `json:"send_resolved,omitempty"`

	// url
	URL string `json:"url,omitempty"`

	// max alerts
	MaxAlerts int32 `json:"max_alerts,omitempty"`

	// http config
	HTTPConfig *ChannelsItems0WebhookConfigHTTPConfig `json:"http_config,omitempty"`
}

ChannelsItems0WebhookConfig WebhookConfig represents webhook configuration. swagger:model ChannelsItems0WebhookConfig

func (*ChannelsItems0WebhookConfig) MarshalBinary

func (o *ChannelsItems0WebhookConfig) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ChannelsItems0WebhookConfig) UnmarshalBinary

func (o *ChannelsItems0WebhookConfig) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ChannelsItems0WebhookConfig) Validate

func (o *ChannelsItems0WebhookConfig) Validate(formats strfmt.Registry) error

Validate validates this channels items0 webhook config

type ChannelsItems0WebhookConfigHTTPConfig

type ChannelsItems0WebhookConfigHTTPConfig struct {

	// bearer token
	BearerToken string `json:"bearer_token,omitempty"`

	// bearer token file
	BearerTokenFile string `json:"bearer_token_file,omitempty"`

	// proxy url
	ProxyURL string `json:"proxy_url,omitempty"`

	// basic auth
	BasicAuth *ChannelsItems0WebhookConfigHTTPConfigBasicAuth `json:"basic_auth,omitempty"`

	// tls config
	TLSConfig *ChannelsItems0WebhookConfigHTTPConfigTLSConfig `json:"tls_config,omitempty"`
}

ChannelsItems0WebhookConfigHTTPConfig HTTPConfig represents HTTP client configuration. swagger:model ChannelsItems0WebhookConfigHTTPConfig

func (*ChannelsItems0WebhookConfigHTTPConfig) MarshalBinary

func (o *ChannelsItems0WebhookConfigHTTPConfig) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ChannelsItems0WebhookConfigHTTPConfig) UnmarshalBinary

func (o *ChannelsItems0WebhookConfigHTTPConfig) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ChannelsItems0WebhookConfigHTTPConfig) Validate

Validate validates this channels items0 webhook config HTTP config

type ChannelsItems0WebhookConfigHTTPConfigBasicAuth

type ChannelsItems0WebhookConfigHTTPConfigBasicAuth struct {

	// username
	Username string `json:"username,omitempty"`

	// password
	Password string `json:"password,omitempty"`

	// password file
	PasswordFile string `json:"password_file,omitempty"`
}

ChannelsItems0WebhookConfigHTTPConfigBasicAuth BasicAuth represents basic HTTP auth configuration. swagger:model ChannelsItems0WebhookConfigHTTPConfigBasicAuth

func (*ChannelsItems0WebhookConfigHTTPConfigBasicAuth) MarshalBinary

MarshalBinary interface implementation

func (*ChannelsItems0WebhookConfigHTTPConfigBasicAuth) UnmarshalBinary

UnmarshalBinary interface implementation

func (*ChannelsItems0WebhookConfigHTTPConfigBasicAuth) Validate

Validate validates this channels items0 webhook config HTTP config basic auth

type ChannelsItems0WebhookConfigHTTPConfigTLSConfig

type ChannelsItems0WebhookConfigHTTPConfigTLSConfig struct {

	// ca file
	CaFile string `json:"ca_file,omitempty"`

	// cert file
	CertFile string `json:"cert_file,omitempty"`

	// key file
	KeyFile string `json:"key_file,omitempty"`

	// server name
	ServerName string `json:"server_name,omitempty"`

	// insecure skip verify
	InsecureSkipVerify bool `json:"insecure_skip_verify,omitempty"`
}

ChannelsItems0WebhookConfigHTTPConfigTLSConfig TLSConfig represents TLS configuration. swagger:model ChannelsItems0WebhookConfigHTTPConfigTLSConfig

func (*ChannelsItems0WebhookConfigHTTPConfigTLSConfig) MarshalBinary

MarshalBinary interface implementation

func (*ChannelsItems0WebhookConfigHTTPConfigTLSConfig) UnmarshalBinary

UnmarshalBinary interface implementation

func (*ChannelsItems0WebhookConfigHTTPConfigTLSConfig) Validate

Validate validates this channels items0 webhook config HTTP config TLS config

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client for channels API

func (*Client) AddChannel

func (a *Client) AddChannel(params *AddChannelParams) (*AddChannelOK, error)

AddChannel adds channel adds notification channel

func (*Client) ChangeChannel

func (a *Client) ChangeChannel(params *ChangeChannelParams) (*ChangeChannelOK, error)

ChangeChannel changes channel changes notification channel

func (*Client) ListChannels

func (a *Client) ListChannels(params *ListChannelsParams) (*ListChannelsOK, error)

ListChannels lists channels returns a list of all notifation channels

func (*Client) RemoveChannel

func (a *Client) RemoveChannel(params *RemoveChannelParams) (*RemoveChannelOK, error)

RemoveChannel removes channel removes notification channel

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

type ClientService

type ClientService interface {
	AddChannel(params *AddChannelParams) (*AddChannelOK, error)

	ChangeChannel(params *ChangeChannelParams) (*ChangeChannelOK, error)

	ListChannels(params *ListChannelsParams) (*ListChannelsOK, error)

	RemoveChannel(params *RemoveChannelParams) (*RemoveChannelOK, error)

	SetTransport(transport runtime.ClientTransport)
}

ClientService is the interface for Client methods

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService

New creates a new channels API client.

type DetailsItems0

type DetailsItems0 struct {

	// type url
	TypeURL string `json:"type_url,omitempty"`

	// value
	// Format: byte
	Value strfmt.Base64 `json:"value,omitempty"`
}

DetailsItems0 details items0 swagger:model DetailsItems0

func (*DetailsItems0) MarshalBinary

func (o *DetailsItems0) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*DetailsItems0) UnmarshalBinary

func (o *DetailsItems0) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*DetailsItems0) Validate

func (o *DetailsItems0) Validate(formats strfmt.Registry) error

Validate validates this details items0

type ListChannelsDefault

type ListChannelsDefault struct {
	Payload *ListChannelsDefaultBody
	// contains filtered or unexported fields
}

ListChannelsDefault handles this case with default header values.

An unexpected error response.

func NewListChannelsDefault

func NewListChannelsDefault(code int) *ListChannelsDefault

NewListChannelsDefault creates a ListChannelsDefault with default headers values

func (*ListChannelsDefault) Code

func (o *ListChannelsDefault) Code() int

Code gets the status code for the list channels default response

func (*ListChannelsDefault) Error

func (o *ListChannelsDefault) Error() string

func (*ListChannelsDefault) GetPayload

type ListChannelsDefaultBody

type ListChannelsDefaultBody struct {

	// error
	Error string `json:"error,omitempty"`

	// code
	Code int32 `json:"code,omitempty"`

	// message
	Message string `json:"message,omitempty"`

	// details
	Details []*DetailsItems0 `json:"details"`
}

ListChannelsDefaultBody list channels default body swagger:model ListChannelsDefaultBody

func (*ListChannelsDefaultBody) MarshalBinary

func (o *ListChannelsDefaultBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ListChannelsDefaultBody) UnmarshalBinary

func (o *ListChannelsDefaultBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ListChannelsDefaultBody) Validate

func (o *ListChannelsDefaultBody) Validate(formats strfmt.Registry) error

Validate validates this list channels default body

type ListChannelsOK

type ListChannelsOK struct {
	Payload *ListChannelsOKBody
}

ListChannelsOK handles this case with default header values.

A successful response.

func NewListChannelsOK

func NewListChannelsOK() *ListChannelsOK

NewListChannelsOK creates a ListChannelsOK with default headers values

func (*ListChannelsOK) Error

func (o *ListChannelsOK) Error() string

func (*ListChannelsOK) GetPayload

func (o *ListChannelsOK) GetPayload() *ListChannelsOKBody

type ListChannelsOKBody

type ListChannelsOKBody struct {

	// channels
	Channels []*ChannelsItems0 `json:"channels"`
}

ListChannelsOKBody list channels OK body swagger:model ListChannelsOKBody

func (*ListChannelsOKBody) MarshalBinary

func (o *ListChannelsOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ListChannelsOKBody) UnmarshalBinary

func (o *ListChannelsOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ListChannelsOKBody) Validate

func (o *ListChannelsOKBody) Validate(formats strfmt.Registry) error

Validate validates this list channels OK body

type ListChannelsParams

type ListChannelsParams struct {

	/*Body*/
	Body interface{}

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

ListChannelsParams contains all the parameters to send to the API endpoint for the list channels operation typically these are written to a http.Request

func NewListChannelsParams

func NewListChannelsParams() *ListChannelsParams

NewListChannelsParams creates a new ListChannelsParams object with the default values initialized.

func NewListChannelsParamsWithContext

func NewListChannelsParamsWithContext(ctx context.Context) *ListChannelsParams

NewListChannelsParamsWithContext creates a new ListChannelsParams object with the default values initialized, and the ability to set a context for a request

func NewListChannelsParamsWithHTTPClient

func NewListChannelsParamsWithHTTPClient(client *http.Client) *ListChannelsParams

NewListChannelsParamsWithHTTPClient creates a new ListChannelsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewListChannelsParamsWithTimeout

func NewListChannelsParamsWithTimeout(timeout time.Duration) *ListChannelsParams

NewListChannelsParamsWithTimeout creates a new ListChannelsParams object with the default values initialized, and the ability to set a timeout on a request

func (*ListChannelsParams) SetBody

func (o *ListChannelsParams) SetBody(body interface{})

SetBody adds the body to the list channels params

func (*ListChannelsParams) SetContext

func (o *ListChannelsParams) SetContext(ctx context.Context)

SetContext adds the context to the list channels params

func (*ListChannelsParams) SetHTTPClient

func (o *ListChannelsParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the list channels params

func (*ListChannelsParams) SetTimeout

func (o *ListChannelsParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the list channels params

func (*ListChannelsParams) WithBody

func (o *ListChannelsParams) WithBody(body interface{}) *ListChannelsParams

WithBody adds the body to the list channels params

func (*ListChannelsParams) WithContext

WithContext adds the context to the list channels params

func (*ListChannelsParams) WithHTTPClient

func (o *ListChannelsParams) WithHTTPClient(client *http.Client) *ListChannelsParams

WithHTTPClient adds the HTTPClient to the list channels params

func (*ListChannelsParams) WithTimeout

func (o *ListChannelsParams) WithTimeout(timeout time.Duration) *ListChannelsParams

WithTimeout adds the timeout to the list channels params

func (*ListChannelsParams) WriteToRequest

func (o *ListChannelsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type ListChannelsReader

type ListChannelsReader struct {
	// contains filtered or unexported fields
}

ListChannelsReader is a Reader for the ListChannels structure.

func (*ListChannelsReader) ReadResponse

func (o *ListChannelsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type RemoveChannelBody

type RemoveChannelBody struct {

	// channel id
	ChannelID string `json:"channel_id,omitempty"`
}

RemoveChannelBody remove channel body swagger:model RemoveChannelBody

func (*RemoveChannelBody) MarshalBinary

func (o *RemoveChannelBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RemoveChannelBody) UnmarshalBinary

func (o *RemoveChannelBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RemoveChannelBody) Validate

func (o *RemoveChannelBody) Validate(formats strfmt.Registry) error

Validate validates this remove channel body

type RemoveChannelDefault

type RemoveChannelDefault struct {
	Payload *RemoveChannelDefaultBody
	// contains filtered or unexported fields
}

RemoveChannelDefault handles this case with default header values.

An unexpected error response.

func NewRemoveChannelDefault

func NewRemoveChannelDefault(code int) *RemoveChannelDefault

NewRemoveChannelDefault creates a RemoveChannelDefault with default headers values

func (*RemoveChannelDefault) Code

func (o *RemoveChannelDefault) Code() int

Code gets the status code for the remove channel default response

func (*RemoveChannelDefault) Error

func (o *RemoveChannelDefault) Error() string

func (*RemoveChannelDefault) GetPayload

type RemoveChannelDefaultBody

type RemoveChannelDefaultBody struct {

	// error
	Error string `json:"error,omitempty"`

	// code
	Code int32 `json:"code,omitempty"`

	// message
	Message string `json:"message,omitempty"`

	// details
	Details []*DetailsItems0 `json:"details"`
}

RemoveChannelDefaultBody remove channel default body swagger:model RemoveChannelDefaultBody

func (*RemoveChannelDefaultBody) MarshalBinary

func (o *RemoveChannelDefaultBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RemoveChannelDefaultBody) UnmarshalBinary

func (o *RemoveChannelDefaultBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RemoveChannelDefaultBody) Validate

func (o *RemoveChannelDefaultBody) Validate(formats strfmt.Registry) error

Validate validates this remove channel default body

type RemoveChannelOK

type RemoveChannelOK struct {
	Payload interface{}
}

RemoveChannelOK handles this case with default header values.

A successful response.

func NewRemoveChannelOK

func NewRemoveChannelOK() *RemoveChannelOK

NewRemoveChannelOK creates a RemoveChannelOK with default headers values

func (*RemoveChannelOK) Error

func (o *RemoveChannelOK) Error() string

func (*RemoveChannelOK) GetPayload

func (o *RemoveChannelOK) GetPayload() interface{}

type RemoveChannelParams

type RemoveChannelParams struct {

	/*Body*/
	Body RemoveChannelBody

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

RemoveChannelParams contains all the parameters to send to the API endpoint for the remove channel operation typically these are written to a http.Request

func NewRemoveChannelParams

func NewRemoveChannelParams() *RemoveChannelParams

NewRemoveChannelParams creates a new RemoveChannelParams object with the default values initialized.

func NewRemoveChannelParamsWithContext

func NewRemoveChannelParamsWithContext(ctx context.Context) *RemoveChannelParams

NewRemoveChannelParamsWithContext creates a new RemoveChannelParams object with the default values initialized, and the ability to set a context for a request

func NewRemoveChannelParamsWithHTTPClient

func NewRemoveChannelParamsWithHTTPClient(client *http.Client) *RemoveChannelParams

NewRemoveChannelParamsWithHTTPClient creates a new RemoveChannelParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewRemoveChannelParamsWithTimeout

func NewRemoveChannelParamsWithTimeout(timeout time.Duration) *RemoveChannelParams

NewRemoveChannelParamsWithTimeout creates a new RemoveChannelParams object with the default values initialized, and the ability to set a timeout on a request

func (*RemoveChannelParams) SetBody

func (o *RemoveChannelParams) SetBody(body RemoveChannelBody)

SetBody adds the body to the remove channel params

func (*RemoveChannelParams) SetContext

func (o *RemoveChannelParams) SetContext(ctx context.Context)

SetContext adds the context to the remove channel params

func (*RemoveChannelParams) SetHTTPClient

func (o *RemoveChannelParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the remove channel params

func (*RemoveChannelParams) SetTimeout

func (o *RemoveChannelParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the remove channel params

func (*RemoveChannelParams) WithBody

WithBody adds the body to the remove channel params

func (*RemoveChannelParams) WithContext

WithContext adds the context to the remove channel params

func (*RemoveChannelParams) WithHTTPClient

func (o *RemoveChannelParams) WithHTTPClient(client *http.Client) *RemoveChannelParams

WithHTTPClient adds the HTTPClient to the remove channel params

func (*RemoveChannelParams) WithTimeout

func (o *RemoveChannelParams) WithTimeout(timeout time.Duration) *RemoveChannelParams

WithTimeout adds the timeout to the remove channel params

func (*RemoveChannelParams) WriteToRequest

func (o *RemoveChannelParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type RemoveChannelReader

type RemoveChannelReader struct {
	// contains filtered or unexported fields
}

RemoveChannelReader is a Reader for the RemoveChannel structure.

func (*RemoveChannelReader) ReadResponse

func (o *RemoveChannelReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL