connector

package
v0.0.16 Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Enterprise grid system roles.
	AnalyticsAdmin         = "Rl0L"
	AuditLogsAdmin         = "Rl0C"
	ChannelAdmin           = "Rl01"
	ChannelManager         = "Rl0A"
	ConversationAdmin      = "Rl05"
	DLPAdmin               = "Rl09"
	ExportsAdmin           = "Rl0F"
	IntegrationsManager    = "Rl0D"
	MessageActivityManager = "Rl04"
	RoleAdmin              = "Rl02"
	SalesAdmin             = "Rl0G"
	SalesUser              = "Rl0H"
	SecurityAdmin          = "Rl0J"
	SlackPlatformDeveloper = "Rl0B"
	UserAdmin              = "Rl03"
	WorkflowAdmin          = "Rl0K"

	// Enterprise grid organization roles.
	OrganizationPrimaryOwnerID = "organization_primary_owner"
	OrganizationOwnerID        = "organization_owner"
	OrganizationAdminID        = "organization_admin"
)
View Source
const (
	PrimaryOwnerRoleID       = "primary_owner"
	OwnerRoleID              = "owner"
	AdminRoleID              = "admin"
	MultiChannelGuestRoleID  = "multi_channel_guest"
	SingleChannelGuestRoleID = "single_channel_guest"
	InvitedMemberRoleID      = "invited_member"
	BotRoleID                = "bot"
	MemberRoleID             = "member"

	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, enterpriseKey string, ssoEnabled bool) (*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