Documentation
¶
Index ¶
- Variables
- type Client
- func (c *Client) CreateDiscordChannel(spaceID string, commonParams NotificationChannel, ...) (*NotificationChannel, error)
- func (c *Client) CreateNodeRoomMember(spaceID, roomID, nodeID string) error
- func (c *Client) CreatePagerdutyChannel(spaceID string, commonParams NotificationChannel, ...) (*NotificationChannel, error)
- func (c *Client) CreateRoom(spaceID, name, description string) (*RoomInfo, error)
- func (c *Client) CreateRoomMember(spaceID, roomID, spaceMemberID string) error
- func (c *Client) CreateSlackChannel(spaceID string, commonParams NotificationChannel, ...) (*NotificationChannel, error)
- func (c *Client) CreateSpace(name, description string) (*SpaceInfo, error)
- func (c *Client) CreateSpaceMember(spaceID, email, role string) (*SpaceMember, error)
- func (c *Client) DeleteChannelByID(spaceID, channelID string) error
- func (c *Client) DeleteInvitations(spaceID string, invitations *[]Invitation) error
- func (c *Client) DeleteNodeRoomMember(spaceID, roomID, nodeID string) error
- func (c *Client) DeleteRoomByID(id, spaceID string) error
- func (c *Client) DeleteRoomMember(spaceID, roomID, spaceMemberID string) error
- func (c *Client) DeleteSpaceByID(id string) error
- func (c *Client) DeleteSpaceMember(spaceID, memberID string) error
- func (c *Client) EnableChannelByID(spaceID, channelID string, enabled bool) error
- func (c *Client) GetAllNodes(spaceID string) (*RoomNodes, error)
- func (c *Client) GetInvitations(spaceID string) (*[]Invitation, error)
- func (c *Client) GetNotificationChannelByIDAndType(spaceID, channelID, typeName string) (*NotificationChannel, error)
- func (c *Client) GetNotificationChannelByType(spaceID, typeName string) (*[]NotificationChannel, error)
- func (c *Client) GetNotificationIntegrationByType(spaceID, typeName string) (*NotificationIntegration, error)
- func (c *Client) GetRoomByID(id, spaceID string) (*RoomInfo, error)
- func (c *Client) GetRoomMemberID(spaceID, roomID, spaceMemberID string) (*RoomMember, error)
- func (c *Client) GetRoomMembers(spaceID, roomID string) (*[]RoomMember, error)
- func (c *Client) GetRoomNodes(spaceID, roomID string) (*RoomNodes, error)
- func (c *Client) GetRooms(spaceID string) (*[]RoomInfo, error)
- func (c *Client) GetSpaceByID(id string) (*SpaceInfo, error)
- func (c *Client) GetSpaceClaimToken(id string) (*string, error)
- func (c *Client) GetSpaceMemberID(spaceID, memberID string) (*SpaceMember, error)
- func (c *Client) GetSpaceMembers(spaceID string) (*[]SpaceMember, error)
- func (c *Client) GetSpaces() (*[]SpaceInfo, error)
- func (c *Client) UpdateDiscordChannelByID(spaceID string, commonParams NotificationChannel, ...) (*NotificationChannel, error)
- func (c *Client) UpdatePagerdutyChannelByID(spaceID string, commonParams NotificationChannel, ...) (*NotificationChannel, error)
- func (c *Client) UpdateRoomByID(id, spaceID, name, description string) error
- func (c *Client) UpdateSlackChannelByID(spaceID string, commonParams NotificationChannel, ...) (*NotificationChannel, error)
- func (c *Client) UpdateSpaceByID(id, name, description string) error
- func (c *Client) UpdateSpaceMemberRoleByID(spaceID, memberID, role string) error
- type Invitation
- type NotificationChannel
- type NotificationDiscordChannel
- type NotificationIntegration
- type NotificationIntegrations
- type NotificationPagerdutyChannel
- type NotificationSlackChannel
- type RoomInfo
- type RoomMember
- type RoomNode
- type RoomNodes
- type SpaceInfo
- type SpaceMember
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNotFound = errors.New("not found") ErrSpaceIDRequired = errors.New("spaceID is required") ErrChannelIDRequired = errors.New("channelID is required") ErrRoomIDRequired = errors.New("roomID is required") ErrMemberIDRequired = errors.New("memberID is required") ErrNodeID = errors.New("nodeID is required") )
Functions ¶
This section is empty.
Types ¶
type Client ¶
func (*Client) CreateDiscordChannel ¶
func (c *Client) CreateDiscordChannel(spaceID string, commonParams NotificationChannel, discordParams NotificationDiscordChannel) (*NotificationChannel, error)
func (*Client) CreateNodeRoomMember ¶ added in v0.2.0
func (*Client) CreatePagerdutyChannel ¶
func (c *Client) CreatePagerdutyChannel(spaceID string, commonParams NotificationChannel, pagerdutyParams NotificationPagerdutyChannel) (*NotificationChannel, error)
func (*Client) CreateRoom ¶
func (*Client) CreateRoomMember ¶
func (*Client) CreateSlackChannel ¶
func (c *Client) CreateSlackChannel(spaceID string, commonParams NotificationChannel, slackParams NotificationSlackChannel) (*NotificationChannel, error)
func (*Client) CreateSpace ¶
func (*Client) CreateSpaceMember ¶
func (c *Client) CreateSpaceMember(spaceID, email, role string) (*SpaceMember, error)
func (*Client) DeleteChannelByID ¶
func (*Client) DeleteInvitations ¶
func (c *Client) DeleteInvitations(spaceID string, invitations *[]Invitation) error
func (*Client) DeleteNodeRoomMember ¶ added in v0.2.0
func (*Client) DeleteRoomByID ¶
func (*Client) DeleteRoomMember ¶
func (*Client) DeleteSpaceByID ¶
func (*Client) DeleteSpaceMember ¶
func (*Client) EnableChannelByID ¶
func (*Client) GetAllNodes ¶ added in v0.2.0
func (*Client) GetInvitations ¶
func (c *Client) GetInvitations(spaceID string) (*[]Invitation, error)
func (*Client) GetNotificationChannelByIDAndType ¶
func (c *Client) GetNotificationChannelByIDAndType(spaceID, channelID, typeName string) (*NotificationChannel, error)
func (*Client) GetNotificationChannelByType ¶
func (c *Client) GetNotificationChannelByType(spaceID, typeName string) (*[]NotificationChannel, error)
func (*Client) GetNotificationIntegrationByType ¶
func (c *Client) GetNotificationIntegrationByType(spaceID, typeName string) (*NotificationIntegration, error)
func (*Client) GetRoomMemberID ¶
func (c *Client) GetRoomMemberID(spaceID, roomID, spaceMemberID string) (*RoomMember, error)
func (*Client) GetRoomMembers ¶
func (c *Client) GetRoomMembers(spaceID, roomID string) (*[]RoomMember, error)
func (*Client) GetRoomNodes ¶ added in v0.2.0
func (*Client) GetSpaceMemberID ¶
func (c *Client) GetSpaceMemberID(spaceID, memberID string) (*SpaceMember, error)
func (*Client) GetSpaceMembers ¶
func (c *Client) GetSpaceMembers(spaceID string) (*[]SpaceMember, error)
func (*Client) UpdateDiscordChannelByID ¶
func (c *Client) UpdateDiscordChannelByID(spaceID string, commonParams NotificationChannel, discordParams NotificationDiscordChannel) (*NotificationChannel, error)
func (*Client) UpdatePagerdutyChannelByID ¶
func (c *Client) UpdatePagerdutyChannelByID(spaceID string, commonParams NotificationChannel, pagerdutyParams NotificationPagerdutyChannel) (*NotificationChannel, error)
func (*Client) UpdateRoomByID ¶
func (*Client) UpdateSlackChannelByID ¶
func (c *Client) UpdateSlackChannelByID(spaceID string, commonParams NotificationChannel, slackParams NotificationSlackChannel) (*NotificationChannel, error)
func (*Client) UpdateSpaceByID ¶
func (*Client) UpdateSpaceMemberRoleByID ¶
type Invitation ¶
type NotificationChannel ¶
type NotificationChannel struct {
ID string `json:"id"`
Enabled bool `json:"enabled"`
Name string `json:"name"`
Integration NotificationIntegration `json:"integration"`
Alarms string `json:"alarms"`
Rooms []string `json:"rooms"`
Secrets json.RawMessage `json:"secrets"`
RepeatNotificationMinute int64 `json:"repeat_notification_min,omitempty"`
}
type NotificationIntegration ¶
type NotificationIntegrations ¶
type NotificationIntegrations struct {
Integrations []NotificationIntegration `json:"integrations"`
}
type NotificationSlackChannel ¶
type NotificationSlackChannel struct {
URL string `json:"url"`
}
type RoomMember ¶
type RoomMember struct {
SpaceMemberID string `json:"memberID"`
}
type SpaceMember ¶
Click to show internal directories.
Click to hide internal directories.