connector

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: May 6, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PrimaryOwnerRoleID       = "primary_owner"
	OwnerRoleID              = "owner"
	AdminRoleID              = "admin"
	MultiChannelGuestRoleID  = "multi_channel_guest"
	SingleChannelGuestRoleID = "single_channel_guest"
	InvitedMemberRoleID      = "invited_member"
	BotRoleID                = "bot"

	RoleAssignmentEntitlement = "assigned"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Slack

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

func New

func New(ctx context.Context, apiKey string) (*Slack, error)

New returns the Slack connector.

func (*Slack) Metadata

func (c *Slack) Metadata(ctx context.Context) (*v2.ConnectorMetadata, error)

Metadata returns metadata about the connector.

func (*Slack) ResourceSyncers

func (s *Slack) ResourceSyncers(ctx context.Context) []connectorbuilder.ResourceSyncer

func (*Slack) Validate

func (s *Slack) Validate(ctx context.Context) (annotations.Annotations, error)

Validate hits the Slack API to validate that the authenticated user has needed permissions.

Jump to

Keyboard shortcuts

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