notify

package
v0.3.11-8 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2024 License: Apache-2.0, Apache-2.0 Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigCapabilityOptions

type ConfigCapabilityOptions struct {
}

func (*ConfigCapabilityOptions) Params

func (*ConfigCapabilityOptions) Property

func (c *ConfigCapabilityOptions) Property() string

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"`
	Cc      []string `json:"cc" help:"cc receivers"`
	Bcc     []string `json:"bcc" help:"bcc receivers"`

	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 ReceiverGetSubscriptionOptions

type ReceiverGetSubscriptionOptions struct {
	ReceiverOptions
	ShowDisabled bool `help:"List disabled subscription "`
}

func (*ReceiverGetSubscriptionOptions) 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
	Header      string
	Body        string
	MsgKey      string
	UseTemplate bool `help:"just for webhook"`
}

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 SReceiverRoleContactType

type SReceiverRoleContactType struct {
	ROLE_IDS        []string
	Scope           string
	ProjectDomainId string
	ProjectId       string
}

func (*SReceiverRoleContactType) Params

func (*SReceiverRoleContactType) Property

func (rg *SReceiverRoleContactType) Property() string

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
	Header      *string
	Body        *string
	MsgKey      string
	UseTemplate tristate.TriState
}

type SubscriberChangeOptions

type SubscriberChangeOptions struct {
	SubscriberOptions
	Receivers []string
	Role      string
	RoleScope string
	Robot     string
	// minutes
	GroupTimes *int
}

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"`
	// minutes
	GroupTimes int
}

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)

type TopicUpdateOptions

type TopicUpdateOptions struct {
	ID          string
	AdvanceDays []int
}

func (*TopicUpdateOptions) GetId

func (so *TopicUpdateOptions) GetId() string

func (*TopicUpdateOptions) Params

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

Jump to

Keyboard shortcuts

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