slack

package
v3.88.0 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Overview

Code generated by go generate; DO NOT EDIT.

Index

Constants

This section is empty.

Variables

View Source
var (
	PermissionStrings = map[Permission]string{}/* 331 elements not displayed */

	StringToPermission = map[string]Permission{}/* 331 elements not displayed */

	PermissionIDs = map[Permission]int{}/* 331 elements not displayed */

	IdToPermission = map[int]Permission{}/* 331 elements not displayed */

)

Functions

func AnalyzeAndPrintPermissions added in v3.80.5

func AnalyzeAndPrintPermissions(cfg *config.Config, key string)

Types

type Analyzer added in v3.82.0

type Analyzer struct {
	Cfg *config.Config
}

func (Analyzer) Analyze added in v3.82.0

func (a Analyzer) Analyze(_ context.Context, credInfo map[string]string) (*analyzers.AnalyzerResult, error)

func (Analyzer) Type added in v3.82.0

type Permission added in v3.82.0

type Permission int
const (
	Invalid                                               Permission = iota
	AdminAnalyticsRead                                    Permission = iota
	AdminAnalyticsGetfile                                 Permission = iota
	AdminAppActivitiesRead                                Permission = iota
	AdminAppsActivitiesList                               Permission = iota
	AdminAppsWrite                                        Permission = iota
	AdminAppsApprove                                      Permission = iota
	AdminAppsClearresolution                              Permission = iota
	AdminAppsConfigSet                                    Permission = iota
	AdminAppsRequestsCancel                               Permission = iota
	AdminAppsRestrict                                     Permission = iota
	AdminAppsUninstall                                    Permission = iota
	AdminAppsRead                                         Permission = iota
	AdminAppsApprovedList                                 Permission = iota
	AdminAppsConfigLookup                                 Permission = iota
	AdminAppsRequestsList                                 Permission = iota
	AdminAppsRestrictedList                               Permission = iota
	AdminUsersWrite                                       Permission = iota
	AdminAuthPolicyAssignentities                         Permission = iota
	AdminAuthPolicyRemoveentities                         Permission = iota
	AdminUsersAssign                                      Permission = iota
	AdminUsersInvite                                      Permission = iota
	AdminUsersRemove                                      Permission = iota
	AdminUsersSessionClearsettings                        Permission = iota
	AdminUsersSessionInvalidate                           Permission = iota
	AdminUsersSessionReset                                Permission = iota
	AdminUsersSessionResetbulk                            Permission = iota
	AdminUsersSessionSetsettings                          Permission = iota
	AdminUsersSetadmin                                    Permission = iota
	AdminUsersSetexpiration                               Permission = iota
	AdminUsersSetowner                                    Permission = iota
	AdminUsersSetregular                                  Permission = iota
	AdminUsersRead                                        Permission = iota
	AdminAuthPolicyGetentities                            Permission = iota
	AdminUsersList                                        Permission = iota
	AdminUsersSessionGetsettings                          Permission = iota
	AdminUsersSessionList                                 Permission = iota
	AdminUsersUnsupportedversionsExport                   Permission = iota
	AdminBarriersWrite                                    Permission = iota
	AdminBarriersCreate                                   Permission = iota
	AdminBarriersDelete                                   Permission = iota
	AdminBarriersUpdate                                   Permission = iota
	AdminBarriersRead                                     Permission = iota
	AdminBarriersList                                     Permission = iota
	AdminConversationsWrite                               Permission = iota
	AdminConversationsArchive                             Permission = iota
	AdminConversationsBulkarchive                         Permission = iota
	AdminConversationsBulkdelete                          Permission = iota
	AdminConversationsBulkmove                            Permission = iota
	AdminConversationsConverttoprivate                    Permission = iota
	AdminConversationsConverttopublic                     Permission = iota
	AdminConversationsCreate                              Permission = iota
	AdminConversationsDelete                              Permission = iota
	AdminConversationsDisconnectshared                    Permission = iota
	AdminConversationsInvite                              Permission = iota
	AdminConversationsRemovecustomretention               Permission = iota
	AdminConversationsRename                              Permission = iota
	AdminConversationsRestrictaccessAddgroup              Permission = iota
	AdminConversationsRestrictaccessRemovegroup           Permission = iota
	AdminConversationsSetconversationprefs                Permission = iota
	AdminConversationsSetcustomretention                  Permission = iota
	AdminConversationsSetteams                            Permission = iota
	AdminConversationsUnarchive                           Permission = iota
	AdminConversationsRead                                Permission = iota
	AdminConversationsEkmListoriginalconnectedchannelinfo Permission = iota
	AdminConversationsGetconversationprefs                Permission = iota
	AdminConversationsGetcustomretention                  Permission = iota
	AdminConversationsGetteams                            Permission = iota
	AdminConversationsLookup                              Permission = iota
	AdminConversationsRestrictaccessListgroups            Permission = iota
	AdminConversationsSearch                              Permission = iota
	AdminTeamsWrite                                       Permission = iota
	AdminEmojiAdd                                         Permission = iota
	AdminEmojiAddalias                                    Permission = iota
	AdminEmojiRemove                                      Permission = iota
	AdminTeamsCreate                                      Permission = iota
	AdminTeamsSettingsSetdefaultchannels                  Permission = iota
	AdminTeamsSettingsSetdescription                      Permission = iota
	AdminTeamsSettingsSetdiscoverability                  Permission = iota
	AdminTeamsSettingsSeticon                             Permission = iota
	AdminTeamsSettingsSetname                             Permission = iota
	AdminUsergroupsAddteams                               Permission = iota
	AdminTeamsRead                                        Permission = iota
	AdminEmojiList                                        Permission = iota
	AdminTeamsAdminsList                                  Permission = iota
	AdminTeamsList                                        Permission = iota
	AdminTeamsOwnersList                                  Permission = iota
	AdminTeamsSettingsInfo                                Permission = iota
	AdminWorkflowsRead                                    Permission = iota
	AdminFunctionsList                                    Permission = iota
	AdminFunctionsPermissionsLookup                       Permission = iota
	AdminWorkflowsPermissionsLookup                       Permission = iota
	AdminWorkflowsSearch                                  Permission = iota
	AdminWorkflowsWrite                                   Permission = iota
	AdminFunctionsPermissionsSet                          Permission = iota
	AdminWorkflowsCollaboratorsAdd                        Permission = iota
	AdminWorkflowsCollaboratorsRemove                     Permission = iota
	AdminWorkflowsUnpublish                               Permission = iota
	AdminInvitesWrite                                     Permission = iota
	AdminInviterequestsApprove                            Permission = iota
	AdminInviterequestsDeny                               Permission = iota
	AdminInvitesRead                                      Permission = iota
	AdminInviterequestsApprovedList                       Permission = iota
	AdminInviterequestsDeniedList                         Permission = iota
	AdminInviterequestsList                               Permission = iota
	AdminRolesWrite                                       Permission = iota
	AdminRolesAddassignments                              Permission = iota
	AdminRolesRemoveassignments                           Permission = iota
	AdminRolesRead                                        Permission = iota
	AdminRolesListassignments                             Permission = iota
	AdminUsergroupsWrite                                  Permission = iota
	AdminUsergroupsAddchannels                            Permission = iota
	AdminUsergroupsRemovechannels                         Permission = iota
	AdminUsergroupsRead                                   Permission = iota
	AdminUsergroupsListchannels                           Permission = iota
	HostingRead                                           Permission = iota
	AppsActivitiesList                                    Permission = iota
	ConnectionsWrite                                      Permission = iota
	AppsConnectionsOpen                                   Permission = iota
	Token                                                 Permission = iota
	AppsDatastoreBulkdelete                               Permission = iota
	AppsDatastoreBulkget                                  Permission = iota
	AppsDatastoreBulkput                                  Permission = iota
	AppsDatastoreDelete                                   Permission = iota
	AppsDatastoreGet                                      Permission = iota
	AppsDatastorePut                                      Permission = iota
	AppsDatastoreQuery                                    Permission = iota
	AppsDatastoreUpdate                                   Permission = iota
	DatastoreRead                                         Permission = iota
	AppsDatastoreCount                                    Permission = iota
	AuthorizationsRead                                    Permission = iota
	AppsEventAuthorizationsList                           Permission = iota
	Bot                                                   Permission = iota
	AuthRevoke                                            Permission = iota
	AuthTest                                              Permission = iota
	ChatGetpermalink                                      Permission = iota
	ChatScheduledmessagesList                             Permission = iota
	DialogOpen                                            Permission = iota
	FunctionsCompleteerror                                Permission = iota
	FunctionsCompletesuccess                              Permission = iota
	RtmConnect                                            Permission = iota
	RtmStart                                              Permission = iota
	ViewsOpen                                             Permission = iota
	ViewsPublish                                          Permission = iota
	ViewsPush                                             Permission = iota
	ViewsUpdate                                           Permission = iota
	BookmarksWrite                                        Permission = iota
	BookmarksAdd                                          Permission = iota
	BookmarksEdit                                         Permission = iota
	BookmarksRemove                                       Permission = iota
	BookmarksRead                                         Permission = iota
	BookmarksList                                         Permission = iota
	UsersRead                                             Permission = iota
	BotsInfo                                              Permission = iota
	UsersGetpresence                                      Permission = iota
	UsersInfo                                             Permission = iota
	UsersList                                             Permission = iota
	CallsWrite                                            Permission = iota
	CallsAdd                                              Permission = iota
	CallsEnd                                              Permission = iota
	CallsParticipantsAdd                                  Permission = iota
	CallsParticipantsRemove                               Permission = iota
	CallsUpdate                                           Permission = iota
	CallsRead                                             Permission = iota
	CallsInfo                                             Permission = iota
	ChannelsManage                                        Permission = iota
	ChannelsCreate                                        Permission = iota
	ChannelsMark                                          Permission = iota
	ConversationsArchive                                  Permission = iota
	ConversationsClose                                    Permission = iota
	ConversationsCreate                                   Permission = iota
	ConversationsKick                                     Permission = iota
	ConversationsLeave                                    Permission = iota
	ConversationsMark                                     Permission = iota
	ConversationsOpen                                     Permission = iota
	ConversationsRename                                   Permission = iota
	ConversationsUnarchive                                Permission = iota
	GroupsCreate                                          Permission = iota
	GroupsMark                                            Permission = iota
	ImMark                                                Permission = iota
	ImOpen                                                Permission = iota
	MpimMark                                              Permission = iota
	MpimOpen                                              Permission = iota
	ChannelsRead                                          Permission = iota
	ChannelsInfo                                          Permission = iota
	ConversationsInfo                                     Permission = iota
	ConversationsList                                     Permission = iota
	ConversationsMembers                                  Permission = iota
	GroupsInfo                                            Permission = iota
	ImList                                                Permission = iota
	MpimList                                              Permission = iota
	UsersConversations                                    Permission = iota
	ChannelsWriteInvites                                  Permission = iota
	ChannelsInvite                                        Permission = iota
	ConversationsInvite                                   Permission = iota
	GroupsInvite                                          Permission = iota
	ChatWrite                                             Permission = iota
	ChatDelete                                            Permission = iota
	ChatDeletescheduledmessage                            Permission = iota
	ChatMemessage                                         Permission = iota
	ChatPostephemeral                                     Permission = iota
	ChatPostmessage                                       Permission = iota
	ChatSchedulemessage                                   Permission = iota
	ChatUpdate                                            Permission = iota
	LinksWrite                                            Permission = iota
	ChatUnfurl                                            Permission = iota
	ConversationsConnectWrite                             Permission = iota
	ConversationsAcceptsharedinvite                       Permission = iota
	ConversationsInviteshared                             Permission = iota
	ConversationsConnectManage                            Permission = iota
	ConversationsApprovesharedinvite                      Permission = iota
	ConversationsDeclinesharedinvite                      Permission = iota
	ConversationsListconnectinvites                       Permission = iota
	ChannelsHistory                                       Permission = iota
	ConversationsHistory                                  Permission = iota
	ConversationsReplies                                  Permission = iota
	ChannelsJoin                                          Permission = iota
	ConversationsJoin                                     Permission = iota
	ChannelsWriteTopic                                    Permission = iota
	ConversationsSetpurpose                               Permission = iota
	ConversationsSettopic                                 Permission = iota
	DndWrite                                              Permission = iota
	DndEnddnd                                             Permission = iota
	DndEndsnooze                                          Permission = iota
	DndSetsnooze                                          Permission = iota
	DndRead                                               Permission = iota
	DndInfo                                               Permission = iota
	DndTeaminfo                                           Permission = iota
	EmojiRead                                             Permission = iota
	EmojiList                                             Permission = iota
	FilesWrite                                            Permission = iota
	FilesCommentsDelete                                   Permission = iota
	FilesCompleteuploadexternal                           Permission = iota
	FilesDelete                                           Permission = iota
	FilesGetuploadurlexternal                             Permission = iota
	FilesRevokepublicurl                                  Permission = iota
	FilesSharedpublicurl                                  Permission = iota
	FilesUpload                                           Permission = iota
	FilesRead                                             Permission = iota
	FilesInfo                                             Permission = iota
	FilesList                                             Permission = iota
	RemoteFilesWrite                                      Permission = iota
	FilesRemoteAdd                                        Permission = iota
	FilesRemoteRemove                                     Permission = iota
	FilesRemoteUpdate                                     Permission = iota
	RemoteFilesRead                                       Permission = iota
	FilesRemoteInfo                                       Permission = iota
	FilesRemoteList                                       Permission = iota
	RemoteFilesShare                                      Permission = iota
	FilesRemoteShare                                      Permission = iota
	AppConfigurationsWrite                                Permission = iota
	FunctionsDistributionsPermissionsAdd                  Permission = iota
	FunctionsDistributionsPermissionsRemove               Permission = iota
	FunctionsDistributionsPermissionsSet                  Permission = iota
	AppConfigurationsRead                                 Permission = iota
	FunctionsDistributionsPermissionsList                 Permission = iota
	Conversations                                         Permission = iota
	GroupsOpen                                            Permission = iota
	TokensBasic                                           Permission = iota
	MigrationExchange                                     Permission = iota
	Email                                                 Permission = iota
	OpenidConnectUserinfo                                 Permission = iota
	PinsWrite                                             Permission = iota
	PinsAdd                                               Permission = iota
	PinsRemove                                            Permission = iota
	PinsRead                                              Permission = iota
	PinsList                                              Permission = iota
	ReactionsWrite                                        Permission = iota
	ReactionsAdd                                          Permission = iota
	ReactionsRemove                                       Permission = iota
	ReactionsRead                                         Permission = iota
	ReactionsGet                                          Permission = iota
	ReactionsList                                         Permission = iota
	RemindersWrite                                        Permission = iota
	RemindersAdd                                          Permission = iota
	RemindersComplete                                     Permission = iota
	RemindersDelete                                       Permission = iota
	RemindersRead                                         Permission = iota
	RemindersInfo                                         Permission = iota
	RemindersList                                         Permission = iota
	SearchRead                                            Permission = iota
	SearchAll                                             Permission = iota
	SearchFiles                                           Permission = iota
	SearchMessages                                        Permission = iota
	StarsWrite                                            Permission = iota
	StarsAdd                                              Permission = iota
	StarsRemove                                           Permission = iota
	StarsRead                                             Permission = iota
	StarsList                                             Permission = iota
	Admin                                                 Permission = iota
	TeamAccesslogs                                        Permission = iota
	TeamBillableinfo                                      Permission = iota
	TeamIntegrationlogs                                   Permission = iota
	TeamBillingRead                                       Permission = iota
	TeamBillingInfo                                       Permission = iota
	TeamRead                                              Permission = iota
	TeamInfo                                              Permission = iota
	TeamPreferencesRead                                   Permission = iota
	TeamPreferencesList                                   Permission = iota
	UsersProfileRead                                      Permission = iota
	TeamProfileGet                                        Permission = iota
	UsersProfileGet                                       Permission = iota
	UsergroupsWrite                                       Permission = iota
	UsergroupsCreate                                      Permission = iota
	UsergroupsDisable                                     Permission = iota
	UsergroupsEnable                                      Permission = iota
	UsergroupsUpdate                                      Permission = iota
	UsergroupsUsersUpdate                                 Permission = iota
	UsergroupsRead                                        Permission = iota
	UsergroupsList                                        Permission = iota
	UsergroupsUsersList                                   Permission = iota
	UsersProfileWrite                                     Permission = iota
	UsersDeletephoto                                      Permission = iota
	UsersProfileSet                                       Permission = iota
	UsersSetphoto                                         Permission = iota
	IdentityBasic                                         Permission = iota
	UsersIdentity                                         Permission = iota
	UsersReadEmail                                        Permission = iota
	UsersLookupbyemail                                    Permission = iota
	UsersWrite                                            Permission = iota
	UsersSetactive                                        Permission = iota
	UsersSetpresence                                      Permission = iota
	WorkflowStepsExecute                                  Permission = iota
	WorkflowsStepcompleted                                Permission = iota
	WorkflowsStepfailed                                   Permission = iota
	WorkflowsUpdatestep                                   Permission = iota
	TriggersWrite                                         Permission = iota
	WorkflowsTriggersPermissionsAdd                       Permission = iota
	WorkflowsTriggersPermissionsRemove                    Permission = iota
	WorkflowsTriggersPermissionsSet                       Permission = iota
	TriggersRead                                          Permission = iota
	WorkflowsTriggersPermissionsList                      Permission = iota
)

func PermissionFromID added in v3.82.0

func PermissionFromID(id int) (Permission, error)

PermissionFromID converts an ID to its Permission enum

func PermissionFromString added in v3.82.0

func PermissionFromString(s string) (Permission, error)

PermissionFromString converts a string representation to its Permission enum

func (Permission) ToID added in v3.82.0

func (p Permission) ToID() (int, error)

ToID converts a Permission enum to its ID

func (Permission) ToString added in v3.82.0

func (p Permission) ToString() (string, error)

ToString converts a Permission enum to its string representation

type SecretInfo added in v3.80.5

type SecretInfo struct {
	Scopes string
	User   SlackUserData
}

func AnalyzePermissions

func AnalyzePermissions(cfg *config.Config, key string) (*SecretInfo, error)

type SlackUserData

type SlackUserData struct {
	Ok           bool   `json:"ok"`
	Url          string `json:"url"`
	Team         string `json:"team"`
	User         string `json:"user"`
	TeamId       string `json:"team_id"`
	UserId       string `json:"user_id"`
	BotId        string `json:"bot_id"`
	IsEnterprise bool   `json:"is_enterprise"`
}

Jump to

Keyboard shortcuts

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