Documentation
¶
Index ¶
Constants ¶
View Source
const ( // IndentPrefix is the beginning of all Indent types. IndentPrefix = "indent.com/" // IndentKind represents the type of a block. IndentKind = IndentPrefix + "kind" // LabelSchema identifies the schema for the structure that backs a block. LabelSchema = IndentPrefix + "schema" // LabelDescription provides an excerpt for a Resource. LabelDescription = "description" // LabelReason provides a comma-delimited list of example reasons for a Resource. LabelReason = "reason" )
View Source
const ( // LabelKindPetitionAppValue is the value of the kind label for a block. LabelKindPetitionAppValue = "indent.blocks.provider.v1.App" // LabelAppConfigID determines the app used to resolve a petition. LabelAppConfigID = "indent.com/app/config/id" // LabelSpecifiedPetitionDuration is the duration value submitted by the petitioner. LabelSpecifiedPetitionDuration = "indent.com/petition/duration" )
View Source
const ( // EventApprove is the event for when a request is approved. EventApprove = "access/approve" // EventDeny is the event for when a request is denied. EventDeny = "access/deny" // EventGrant is the event produced when a permission is granted. EventGrant = "access/grant" // EventRevoke is the event produced when a permission is revoked. EventRevoke = "access/revoke" )
View Source
const ( // LabelExpires contains a Time specifying the expiration of a resource. LabelExpires = IndentPrefix + "time/expires" // LabelDuration contains a length of time. LabelDuration = IndentPrefix + "time/duration" // LabelIsIndefinite is a boolean label indicating whether a claim approves // indefinite access. LabelIsIndefinite = IndentPrefix + "time/indefinite" )
View Source
const ( // KindOktaUser is for resources that represent Okta users. KindOktaUser = OktaPrefix + "User" // KindOktaAppUser is for resources that represent Okta app users. KindOktaAppUser = OktaPrefix + "AppUser" // KindOktaGroup is for resources that represent Okta groups. KindOktaGroup = OktaPrefix + "Group" )
View Source
const ( // PetitionStateOpen denotes the "open" petition state. See [docs](https://indent.dev/docs/petitions#petition-phases). PetitionStateOpen = "open" // PetitionStateGranted denotes the "granted" petition state. See [docs](https://indent.dev/docs/petitions#petition-phases). PetitionStateGranted = "granted" // PetitionStateRevoked denotes the "revoked" petition state. See [docs](https://indent.dev/docs/petitions#petition-phases). PetitionStateRevoked = "revoked" // PetitionStateClosed denotes the "closed" petition state. See [docs](https://indent.dev/docs/petitions#petition-phases). PetitionStateClosed = "closed" )
View Source
const ( // LabelResourceEmail contains the email associated with Resource. LabelResourceEmail = ResourcePrefix + "email" // LabelResourceKind contains the kind associated with Resource. LabelResourceKind = ResourcePrefix + "kind" // LabelResourceID contains the ID associated with Resource. LabelResourceID = ResourcePrefix + "id" // LabelResourceIconURL contains the icon URL associated with Resource. LabelResourceIconURL = ResourcePrefix + "icon" )
View Source
const ( // KindSlackUser is for resources that represent Slack users. KindSlackUser = SlackPrefix + "user" // KindSlackConversation represents a Slack chat. KindSlackConversation = SlackPrefix + "conversation" )
View Source
const ( // SlackConversationTypePrivateChannel represents a private Slack channel. SlackConversationTypePrivateChannel = "private_channel" // SlackConversationTypePublicChannel represents a public Slack channel. SlackConversationTypePublicChannel = "public_channel" )
View Source
const ( // LabelTeamID contains the ID of the related team. LabelTeamID = SlackPrefix + "team/id" // LabelSlackIsAdmin indicates whether a Slack user is a workspace admin. LabelSlackIsAdmin = SlackPrefix + "is_admin" // LabelSlackIsOwner indicates whether a Slack user is a workspace owner. LabelSlackIsOwner = SlackPrefix + "is_owner" // LabelSlackIsPrimaryOwner indicates whether a Slack user is the primary workspace owner. LabelSlackIsPrimaryOwner = SlackPrefix + "is_primary_owner" // LabelSlackIsRestricted indicates whether a Slack user is restricted. LabelSlackIsRestricted = SlackPrefix + "is_restricted" // LabelSlackIsUltraRestricted indicates whether a Slack user is ultra-restricted. LabelSlackIsUltraRestricted = SlackPrefix + "is_ultra_restricted" // LabelSlackIsDeactivated indicates whether a Slack user has been deactivated // or deleted; Slack uses these terms interchangeably: api.slack.com/types/user LabelSlackIsDeactivated = SlackPrefix + "is_deactivated" // LabelSlackIsBot indicates whether a Slack user is a bot. LabelSlackIsBot = SlackPrefix + "is_bot" // LabelSlackHas2FA indicates whether a Slack user has 2FA configured. LabelSlackHas2FA = SlackPrefix + "has_2fa" )
View Source
const (
// EnvIndentSpace is the name of the space affected.
EnvIndentSpace = "INDENT_SPACE"
)
Names for environment variables used as cmd/indent-api configuration.
View Source
const (
// KindRole is a Role within Indent that can be assigned to a user.
KindRole = "indent.v1.Role"
)
View Source
const (
// KindUser is the resource kind for an Indent user resource.
KindUser = "indent.blocks.v1.User"
)
View Source
const (
// LabelBlockName is the label used to define a messages Block name.
LabelBlockName = "indent.com/block"
)
View Source
const (
// LabelManager is the manager of the given resource.
LabelManager = "managerId"
)
View Source
const (
// LabelOktaID label containing the Okta ID related to a Resource.
LabelOktaID = "oktaId"
)
View Source
const (
// LabelResourceAutoApproval indicates that the resource is auto-approved.
LabelResourceAutoApproval = "auto_approval"
)
View Source
const ( // LabelSlackManager contains the Slack ID of a user's manager. LabelSlackManager = SlackPrefix + LabelManager )
View Source
const (
// OktaPrefix is the beginning of all of Okta kinds.
OktaPrefix = "okta.v1."
)
View Source
const ( // ResourcePrefix begins each resource label. ResourcePrefix = IndentPrefix + "resource/" )
View Source
const (
// ResourceSchema tracks the version of the Resource schema.
ResourceSchema = "indent.audit.v1beta1.Resource"
)
View Source
const (
// SlackPrefix is the beginning of all of Slack kinds.
SlackPrefix = "slack/"
)
View Source
const (
// StateLen is the length of the OAuth2 'state' string.
StateLen = 6
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.