notify

package
v0.3.10-0-alpha2 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2022 License: Apache-2.0, Apache-2.0 Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigCreateOptions

type ConfigCreateOptions struct {
	NAME        string   `help:"Name of Config"`
	Domain      string   `help:"which domain create for, required if attribution is 'domain'"`
	Type        string   `help:"The type of config"`
	Configs     []string `help:"Config content, format: 'key:value'"`
	Attribution string   `help:"Attribution" choices:"system|domain"`
}

func (*ConfigCreateOptions) Params

type ConfigListOptions

type ConfigListOptions struct {
	options.BaseListOptions
	Type        string `json:"type"`
	Attribution string `json:"attribution"`
}

func (*ConfigListOptions) Params

func (cl *ConfigListOptions) Params() (jsonutils.JSONObject, error)

type ConfigOptions

type ConfigOptions struct {
	ID string
}

func (*ConfigOptions) GetId

func (c *ConfigOptions) GetId() string

func (*ConfigOptions) Params

func (c *ConfigOptions) Params() (jsonutils.JSONObject, error)

type ConfigUpdateOptions

type ConfigUpdateOptions struct {
	ConfigOptions
	Configs []string
}

func (*ConfigUpdateOptions) Params

type EmailQueueCreateOptions

type EmailQueueCreateOptions struct {
	SUBJECT string   `help:"email subject"`
	BODY    string   `help:"email body"`
	TO      []string `json:"to" help:"receiver email"`

	SessionId string `help:"session id of sending email"`

	Attach []string `help:"path to attachment"`
}

func (*EmailQueueCreateOptions) Params

type EmailQueueListOptions

type EmailQueueListOptions struct {
	options.BaseListOptions

	Id        []int    `json:"id"`
	To        []string `json:"to"`
	Subject   string   `json:"subject"`
	SessionId []string `json:"session_id"`
}

func (*EmailQueueListOptions) Params

type EmailQueueOptions

type EmailQueueOptions struct {
	ID string `help:"Id of email queue" json:"-"`
}

func (*EmailQueueOptions) GetId

func (r *EmailQueueOptions) GetId() string

func (*EmailQueueOptions) Params

type EmailQueueSendOptions

type EmailQueueSendOptions struct {
	EmailQueueOptions

	Sync bool `json:"sync" help:"send email synchronously"`
}

func (*EmailQueueSendOptions) Params

type ReceiverCreateOptions

type ReceiverCreateOptions struct {
	UID                 string   `help:"user id in keystone"`
	Email               string   `help:"email of receiver"`
	Mobile              string   `help:"mobile of receiver"`
	MobileAreaCode      string   `help:"area code of mobile"`
	EnabledContactTypes []string `help:"enabled contact type"`
}

func (*ReceiverCreateOptions) Params

type ReceiverEnableContactTypeInput

type ReceiverEnableContactTypeInput struct {
	ReceiverOptions
	SreceiverEnableContactTypeInput
}

func (*ReceiverEnableContactTypeInput) Params

type ReceiverGetTypeOptions

type ReceiverGetTypeOptions struct {
	Receivers []string `help:"View the available notification channels for the receivers"`
	DomainIds []string `help:"View the available notification channels for the domains with these DomainIds"`
	Operation string   `help:"Operation of reduce" choices:"merge|union"`
}

func (*ReceiverGetTypeOptions) Params

type ReceiverIntellijGetOptions

type ReceiverIntellijGetOptions struct {
	USERID     string `help:"user id in keystone" json:"user_id"`
	CreateIfNo *bool  `help:"create if receiver with UserId does not exist"`
	SCOPE      string `help:"scope"`
}

func (*ReceiverIntellijGetOptions) Params

type ReceiverListOptions

type ReceiverListOptions struct {
	options.BaseListOptions
	UId                 string `help:"user id in keystone"`
	UName               string `help:"user name in keystone"`
	EnabledContactType  string `help:"enabled contact type"`
	VerifiedContactType string `help:"verified contact type"`
	ProjectDomainFilter bool   `help:"filter receivers who join the project under the domain where the requester is currently located"`
}

func (*ReceiverListOptions) Params

type ReceiverOptions

type ReceiverOptions struct {
	ID string `help:"Id or Name of receiver"`
}

func (*ReceiverOptions) GetId

func (r *ReceiverOptions) GetId() string

func (*ReceiverOptions) Params

func (r *ReceiverOptions) Params() (jsonutils.JSONObject, error)

type ReceiverTriggerVerifyOptions

type ReceiverTriggerVerifyOptions struct {
	ReceiverOptions
	SreceiverTriggerVerifyOptions
}

func (*ReceiverTriggerVerifyOptions) Params

type ReceiverUpdateOptions

type ReceiverUpdateOptions struct {
	ReceiverOptions
	SreceiverUpdateOptions
}

func (*ReceiverUpdateOptions) Params

type ReceiverVerifyOptions

type ReceiverVerifyOptions struct {
	ReceiverOptions
	SreceiverVerifyOptions
}

func (*ReceiverVerifyOptions) Params

type RobotCreateOptions

type RobotCreateOptions struct {
	NAME    string
	Type    string `choices:"feishu|dingtalk|workwx|webhook"`
	Address string
	Lang    string
}

func (*RobotCreateOptions) Params

func (rc *RobotCreateOptions) Params() (jsonutils.JSONObject, error)

type RobotListOptions

type RobotListOptions struct {
	options.BaseListOptions
	Lang    string
	Type    string `choices:"feishu|dingtalk|workwx|webhook"`
	Enabled *bool
}

func (*RobotListOptions) Params

func (rl *RobotListOptions) Params() (jsonutils.JSONObject, error)

type RobotOptions

type RobotOptions struct {
	ID string `help:"Id or Name of robot"`
}

func (*RobotOptions) GetId

func (r *RobotOptions) GetId() string

func (*RobotOptions) Params

func (r *RobotOptions) Params() (jsonutils.JSONObject, error)

type RobotUpdateOptions

type RobotUpdateOptions struct {
	RobotOptions
	SrobotUpdateOptions
}

func (*RobotUpdateOptions) Params

func (ru *RobotUpdateOptions) Params() (jsonutils.JSONObject, error)

type SreceiverEnableContactTypeInput

type SreceiverEnableContactTypeInput struct {
	EnabledContactTypes []string `help:"Enabled contact types"`
}

type SreceiverTriggerVerifyOptions

type SreceiverTriggerVerifyOptions struct {
	ContactType string `help:"Contact type to trigger verify" choices:"email|mobile"`
}

type SreceiverUpdateOptions

type SreceiverUpdateOptions struct {
	Email              string   `help:"email of receiver"`
	Mobile             string   `help:"mobile of receiver"`
	MobileAreaCode     string   `help:"area code of mobile"`
	EnabledContactType []string `help:"enabled contact type"`
}

type SreceiverVerifyOptions

type SreceiverVerifyOptions struct {
	ContactType string `help:"Contact type to trigger verify" choices:"email|mobile"`
	Token       string `help:"Token from verify message sent to you"`
}

type SrobotUpdateOptions

type SrobotUpdateOptions struct {
	Address string
	Lang    string
}

type SubscriberChangeOptions

type SubscriberChangeOptions struct {
	SubscriberOptions
	Receivers []string
	Role      string
	RoleScope string
	Robot     string
}

func (*SubscriberChangeOptions) Params

type SubscriberCreateOptions

type SubscriberCreateOptions struct {
	TopicId               string   `positional:"true"`
	ResourceScope         string   `positional:"true" choices:"system|domain|project"`
	ResourceAttributionId string   `help:"project id or domain id of resource"`
	Type                  string   `positional:"true" choices:"receiver|robot|role"`
	Receivers             []string `help:"required if type is 'receiver'"`
	Role                  string   `help:"required if type is 'role'"`
	RoleScope             string   `help:"required if type is 'role'"`
	Robot                 string   `help:"required if type is 'robot'"`
	Scope                 string   `positional:"true"`
}

func (*SubscriberCreateOptions) Params

type SubscriberListOptions

type SubscriberListOptions struct {
	options.BaseListOptions
	TopicId       string
	ResourceScope string `choices:"system|domain|project"`
	Type          string `choices:"receiver|robot|role"`
	SCOPE         string `choices:"system|domain"`
}

func (*SubscriberListOptions) Params

type SubscriberOptions

type SubscriberOptions struct {
	ID string
}

func (*SubscriberOptions) GetId

func (s *SubscriberOptions) GetId() string

func (*SubscriberOptions) Params

type TopicListOptions

type TopicListOptions struct {
	options.BaseListOptions
}

func (*TopicListOptions) Params

func (opts *TopicListOptions) Params() (jsonutils.JSONObject, error)

type TopicOptions

type TopicOptions struct {
	ID string `help:"Id or Name of topic"`
}

func (*TopicOptions) GetId

func (so *TopicOptions) GetId() string

func (*TopicOptions) Params

func (so *TopicOptions) Params() (jsonutils.JSONObject, error)

Jump to

Keyboard shortcuts

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