Documentation
¶
Overview ¶
Package enums has enums
Index ¶
- type AuthProvider
- type ControlSource
- type ControlType
- type DocumentStatus
- type DocumentType
- type EvidenceStatus
- type Frequency
- type InviteStatus
- type JoinPolicy
- type Permission
- type Priority
- type ProgramStatus
- type Region
- type RiskImpact
- type RiskLikelihood
- type RiskStatus
- type Role
- type StandardStatus
- type TaskStatus
- type Tier
- type UserStatus
- type Visibility
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthProvider ¶
type AuthProvider string
var ( // Credentials provider is when the user authenticates with a username and password AuthProviderCredentials AuthProvider = "CREDENTIALS" // Google oauth2 provider for authentication AuthProviderGoogle AuthProvider = "GOOGLE" // Github oauth2 provider for authentication AuthProviderGitHub AuthProvider = "GITHUB" // Webauthn passkey provider for authentication AuthProviderWebauthn AuthProvider = "WEBAUTHN" // AuthProviderInvalid is the default value for the AuthProvider enum AuthProviderInvalid AuthProvider = "INVALID" )
func ToAuthProvider ¶
func ToAuthProvider(r string) *AuthProvider
ToAuthProvider returns the AuthProvider based on string input
func (AuthProvider) MarshalGQL ¶
func (r AuthProvider) MarshalGQL(w io.Writer)
MarshalGQL implement the Marshaler interface for gqlgen
func (AuthProvider) String ¶
func (r AuthProvider) String() string
String returns the AuthProvider as a string
func (*AuthProvider) UnmarshalGQL ¶
func (r *AuthProvider) UnmarshalGQL(v interface{}) error
UnmarshalGQL implement the Unmarshaler interface for gqlgen
func (AuthProvider) Values ¶
func (AuthProvider) Values() (kinds []string)
Values returns a slice of strings that represents all the possible values of the AuthProvider enum. Possible default values are "CREDENTIALS", "GOOGLE", "GITHUB", and "WEBAUTHN"
type ControlSource ¶ added in v0.7.3
type ControlSource string
var ( // ControlSourceFramework is used when the control comes from an official framework (e.g. NIST, ISO, etc.) ControlSourceFramework ControlSource = "FRAMEWORK" // ControlSourceTemplate is used when the control comes from a template ControlSourceTemplate ControlSource = "TEMPLATE" // ControlSourceUserDefined is used when the control is manually created by a user ControlSourceUserDefined ControlSource = "USER_DEFINED" // ControlSourceImport is used when the control is imported from another system ControlSourceImport ControlSource = "IMPORTED" // ControlSourceInvalid is used when the control source is invalid ControlSourceInvalid ControlSource = "INVALID" )
func ToControlSource ¶ added in v0.7.3
func ToControlSource(r string) *ControlSource
ToControlSource returns the control source enum based on string input
func (ControlSource) MarshalGQL ¶ added in v0.7.3
func (r ControlSource) MarshalGQL(w io.Writer)
MarshalGQL implement the Marshaler interface for gqlgen
func (ControlSource) String ¶ added in v0.7.3
func (r ControlSource) String() string
String returns the ControlSource as a string
func (*ControlSource) UnmarshalGQL ¶ added in v0.7.3
func (r *ControlSource) UnmarshalGQL(v interface{}) error
UnmarshalGQL implement the Unmarshaler interface for gqlgen
func (ControlSource) Values ¶ added in v0.7.3
func (ControlSource) Values() (kinds []string)
Values returns a slice of strings that represents all the possible values of the ControlSource enum. Possible default values are "FRAMEWORK", "TEMPLATE", "USER_DEFINED", and "IMPORTED".
type ControlType ¶ added in v0.7.3
type ControlType string
var ( // ControlTypePreventative is designed to prevent an event from occurring ControlTypePreventative ControlType = "PREVENTATIVE" // ControlTypeDetective is designed to detect an event that has occurred ControlTypeDetective ControlType = "DETECTIVE" // ControlTypeCorrective is designed to detect and correct an event that has occurred ControlTypeCorrective ControlType = "CORRECTIVE" // ControlTypeDeterrent acts as a deterrent to prevent an event from occurring ControlTypeDeterrent ControlType = "DETERRENT" // ControlTypeInvalid is used when the control type is invalid ControlTypeInvalid ControlType = "INVALID" )
func ToControlType ¶ added in v0.7.3
func ToControlType(r string) *ControlType
ToControlType returns the control type enum based on string input
func (ControlType) MarshalGQL ¶ added in v0.7.3
func (r ControlType) MarshalGQL(w io.Writer)
MarshalGQL implement the Marshaler interface for gqlgen
func (ControlType) String ¶ added in v0.7.3
func (r ControlType) String() string
String returns the ControlType as a string
func (*ControlType) UnmarshalGQL ¶ added in v0.7.3
func (r *ControlType) UnmarshalGQL(v interface{}) error
UnmarshalGQL implement the Unmarshaler interface for gqlgen
func (ControlType) Values ¶ added in v0.7.3
func (ControlType) Values() (kinds []string)
Values returns a slice of strings that represents all the possible values of the ControlType enum. Possible default values are "PREVENTATIVE", "DETECTIVE", "CORRECTIVE", and "DETERRENT".
type DocumentStatus ¶ added in v0.7.5
type DocumentStatus string
DocumentStatus is a custom type for document status
var ( // DocumentPublished indicates that the document is published DocumentPublished DocumentStatus = "PUBLISHED" // DocumentDraft indicates that the document is in draft status DocumentDraft DocumentStatus = "DRAFT" // DocumentNeedsApproval indicates that the document needs approval DocumentNeedsApproval DocumentStatus = "NEEDS_APPROVAL" // DocumentApproved indicates that the document has been approved and is ready to be published DocumentApproved DocumentStatus = "APPROVED" // DocumentArchived indicates that the document has been archived and is no longer active DocumentArchived DocumentStatus = "ARCHIVED" // DocumentStatusInvalid indicates that the document status is invalid DocumentStatusInvalid DocumentStatus = "DOCUMENT_STATUS_INVALID" )
func ToDocumentStatus ¶ added in v0.7.5
func ToDocumentStatus(r string) *DocumentStatus
ToDocumentStatus returns the document status enum based on string input
func (DocumentStatus) MarshalGQL ¶ added in v0.7.5
func (r DocumentStatus) MarshalGQL(w io.Writer)
MarshalGQL implement the Marshaler interface for gqlgen
func (DocumentStatus) String ¶ added in v0.7.5
func (r DocumentStatus) String() string
String returns the document status as a string
func (*DocumentStatus) UnmarshalGQL ¶ added in v0.7.5
func (r *DocumentStatus) UnmarshalGQL(v interface{}) error
UnmarshalGQL implement the Unmarshaler interface for gqlgen
func (DocumentStatus) Values ¶ added in v0.7.5
func (DocumentStatus) Values() (kinds []string)
Values returns a slice of strings that represents all the possible values of the DocumentStatus enum. Possible default values are "PUBLISHED", "DRAFT", "NEEDS_APPROVAL", and "APPROVED"
type DocumentType ¶
type DocumentType string
var ( // RootTemplate are templates provided by the system RootTemplate DocumentType = "ROOTTEMPLATE" // Document are templates from root templates, or scratch, owned by the organization Document DocumentType = "DOCUMENT" // DocumentTypeInvalid is the default value for the DocumentType enum DocumentTypeInvalid DocumentType = "INVALID" )
func ToDocumentType ¶
func ToDocumentType(r string) *DocumentType
ToDocumentType returns the user status enum based on string input
func (DocumentType) MarshalGQL ¶
func (r DocumentType) MarshalGQL(w io.Writer)
MarshalGQL implement the Marshaler interface for gqlgen
func (DocumentType) String ¶
func (r DocumentType) String() string
String returns the DocumentType as a string
func (*DocumentType) UnmarshalGQL ¶
func (r *DocumentType) UnmarshalGQL(v interface{}) error
UnmarshalGQL implement the Unmarshaler interface for gqlgen
func (DocumentType) Values ¶
func (DocumentType) Values() (kinds []string)
Values returns a slice of strings that represents all the possible values of the DocumentType enum. Possible default values are "ROOTTEMPLATE", "DOCUMENT"
type EvidenceStatus ¶ added in v0.7.5
type EvidenceStatus string
EvidenceStatus is a custom type for evidence status
var ( // EvidenceReady is the status to indicate that the evidence is ready for auditor review EvidenceReady EvidenceStatus = "READY" // EvidenceApproved is the status to indicate that the evidence has been approved by the auditor EvidenceApproved EvidenceStatus = "APPROVED" // EvidenceMissingArtifact is the status to indicate that the evidence is missing an artifact EvidenceMissingArtifact EvidenceStatus = "MISSING_ARTIFACT" // EvidenceNeedsRenewal is the status to indicate that the evidence needs to be renewed EvidenceNeedsRenewal EvidenceStatus = "NEEDS_RENEWAL" // EvidenceRejected is the status to indicate that the evidence has been rejected by the auditor EvidenceRejected EvidenceStatus = "REJECTED" // EvidenceInvalid is the status to indicate that the evidence is invalid EvidenceInvalid EvidenceStatus = "EVIDENCE_STATUS_INVALID" )
func ToEvidenceStatus ¶ added in v0.7.5
func ToEvidenceStatus(r string) *EvidenceStatus
ToEvidenceStatus returns the evidence status enum based on string input
func (EvidenceStatus) MarshalGQL ¶ added in v0.7.5
func (r EvidenceStatus) MarshalGQL(w io.Writer)
MarshalGQL implement the Marshaler interface for gqlgen
func (EvidenceStatus) String ¶ added in v0.7.5
func (r EvidenceStatus) String() string
String returns the evidence status as a string
func (*EvidenceStatus) UnmarshalGQL ¶ added in v0.7.5
func (r *EvidenceStatus) UnmarshalGQL(v interface{}) error
UnmarshalGQL implement the Unmarshaler interface for gqlgen
func (EvidenceStatus) Values ¶ added in v0.7.5
func (EvidenceStatus) Values() (kinds []string)
Values returns a slice of strings that represents all the possible values of the EvidenceStatus enum. Possible default values are "READY", "APPROVED", "MISSING_ARTIFACT", "REJECTED", and "NEEDS_RENEWAL"
type Frequency ¶ added in v0.7.5
type Frequency string
Frequency is a custom type for frequency
var ( // FrequencyYearly indicates that the frequency should occur yearly FrequencyYearly Frequency = "YEARLY" // FrequencyQuarterly indicates that the frequency should occur quarterly FrequencyQuarterly Frequency = "QUARTERLY" // FrequencyBiAnnually indicates that the frequency should occur bi-annually FrequencyBiAnnually Frequency = "BIANNUALLY" // FrequencyMonthly indicates that the frequency should occur monthly FrequencyMonthly Frequency = "MONTHLY" )
func ToFrequency ¶ added in v0.7.5
ToFrequency returns the frequency enum based on string input
func (Frequency) MarshalGQL ¶ added in v0.7.5
MarshalGQL implement the Marshaler interface for gqlgen
func (*Frequency) UnmarshalGQL ¶ added in v0.7.5
UnmarshalGQL implement the Unmarshaler interface for gqlgen
type InviteStatus ¶
type InviteStatus string
var ( InvitationSent InviteStatus = "INVITATION_SENT" ApprovalRequired InviteStatus = "APPROVAL_REQUIRED" InvitationAccepted InviteStatus = "INVITATION_ACCEPTED" InvitationExpired InviteStatus = "INVITATION_EXPIRED" InviteInvalid InviteStatus = "INVITE_INVALID" )
func ToInviteStatus ¶
func ToInviteStatus(r string) *InviteStatus
ToInviteStatus returns the invite status enum based on string input
func (InviteStatus) MarshalGQL ¶
func (r InviteStatus) MarshalGQL(w io.Writer)
MarshalGQL implement the Marshaler interface for gqlgen
func (InviteStatus) String ¶
func (r InviteStatus) String() string
String returns the invite status as a string
func (*InviteStatus) UnmarshalGQL ¶
func (r *InviteStatus) UnmarshalGQL(v interface{}) error
UnmarshalGQL implement the Unmarshaler interface for gqlgen
func (InviteStatus) Values ¶
func (InviteStatus) Values() (kinds []string)
Values returns a slice of strings that represents all the possible values of the InviteStatus enum. Possible default values are "INVITATION_SENT", "APPROVAL_REQUIRED", "INVITATION_ACCEPTED", and "INVITATION_EXPIRED"
type JoinPolicy ¶
type JoinPolicy string
var ( // JoinPolicyOpen is when the group is open for anyone to join JoinPolicyOpen JoinPolicy = "OPEN" // JoinPolicyInviteOnly is when the group is only joinable by invite JoinPolicyInviteOnly JoinPolicy = "INVITE_ONLY" // JoinPolicyApplicationOnly is when the group is only joinable by application JoinPolicyApplicationOnly JoinPolicy = "APPLICATION_ONLY" // JoinPolicyInviteOrApplication is when the group is joinable by invite or application JoinPolicyInviteOrApplication JoinPolicy = "INVITE_OR_APPLICATION" // JoinPolicyInvalid is the default value for the JoinPolicy enum JoinPolicyInvalid JoinPolicy = "INVALID" )
func ToGroupJoinPolicy ¶
func ToGroupJoinPolicy(r string) *JoinPolicy
ToGroupJoinPolicy returns the user status enum based on string input
func (JoinPolicy) MarshalGQL ¶
func (r JoinPolicy) MarshalGQL(w io.Writer)
MarshalGQL implement the Marshaler interface for gqlgen
func (JoinPolicy) String ¶
func (r JoinPolicy) String() string
String returns the JoinPolicy as a string
func (*JoinPolicy) UnmarshalGQL ¶
func (r *JoinPolicy) UnmarshalGQL(v interface{}) error
UnmarshalGQL implement the Unmarshaler interface for gqlgen
func (JoinPolicy) Values ¶
func (JoinPolicy) Values() (kinds []string)
Values returns a slice of strings that represents all the possible values of the JoinPolicy enum. Possible default values are "OPEN", "INVITE_ONLY", "APPLICATION_ONLY", and "INVITE_OR_APPLICATION".
type Permission ¶ added in v0.6.21
type Permission string
var ( Editor Permission = "EDITOR" Viewer Permission = "VIEWER" Blocked Permission = "BLOCKED" Creator Permission = "CREATOR" )
func ToPermission ¶ added in v0.6.21
func ToPermission(r string) *Permission
ToPermission returns the Permission based on string input
func (Permission) MarshalGQL ¶ added in v0.6.21
func (r Permission) MarshalGQL(w io.Writer)
MarshalGQL implement the Marshaler interface for gqlgen
func (Permission) String ¶ added in v0.6.21
func (r Permission) String() string
String returns the permission as a string
func (*Permission) UnmarshalGQL ¶ added in v0.6.21
func (r *Permission) UnmarshalGQL(v interface{}) error
UnmarshalGQL implement the Unmarshaler interface for gqlgen
func (Permission) Values ¶ added in v0.6.21
func (Permission) Values() (kinds []string)
Values returns a slice of strings that represents all the possible values of the Permission enum. Possible default values are "EDITOR", "VIEWER", "BLOCKED", "CREATOR"
type Priority ¶ added in v0.6.11
type Priority string
Priority represents the priority of a object (e.g. task)
var ( // PriorityLow represents the low priority PriorityLow Priority = "LOW" // PriorityMedium represents the medium priority PriorityMedium Priority = "MEDIUM" // PriorityHigh represents the high priority PriorityHigh Priority = "HIGH" // PriorityCritical represents the critical priority PriorityCritical Priority = "CRITICAL" // PriorityInvalid represents an invalid priority PriorityInvalid Priority = "INVALID" )
func ToPriority ¶ added in v0.6.11
ToPriority returns the user status enum based on string input
func (Priority) MarshalGQL ¶ added in v0.6.11
MarshalGQL implement the Marshaler interface for gqlgen
func (*Priority) UnmarshalGQL ¶ added in v0.6.11
UnmarshalGQL implement the Unmarshaler interface for gqlgen
type ProgramStatus ¶ added in v0.3.5
type ProgramStatus string
var ( ProgramStatusNotStarted ProgramStatus = "NOT_STARTED" ProgramStatusInProgress ProgramStatus = "IN_PROGRESS" ProgramStatusActionRequired ProgramStatus = "ACTION_REQUIRED" ProgramStatusReadyForAuditor ProgramStatus = "READY_FOR_AUDITOR" ProgramStatusCompleted ProgramStatus = "COMPLETED" ProgramStatusInvalid ProgramStatus = "INVALID" )
func ToProgramStatus ¶ added in v0.3.5
func ToProgramStatus(r string) *ProgramStatus
ToProgramStatus returns the program status enum based on string input
func (ProgramStatus) MarshalGQL ¶ added in v0.3.5
func (r ProgramStatus) MarshalGQL(w io.Writer)
MarshalGQL implement the Marshaler interface for gqlgen
func (ProgramStatus) String ¶ added in v0.3.5
func (r ProgramStatus) String() string
String returns the ProgramStatus as a string
func (*ProgramStatus) UnmarshalGQL ¶ added in v0.3.5
func (r *ProgramStatus) UnmarshalGQL(v interface{}) error
UnmarshalGQL implement the Unmarshaler interface for gqlgen
func (ProgramStatus) Values ¶ added in v0.3.5
func (ProgramStatus) Values() (kinds []string)
Values returns a slice of strings that represents all the possible values of the ProgramStatus enum. Possible default values are "OPEN", "IN_PROGRESS", "IN_REVIEW", "COMPLETED", and "ACTION_REQUIRED".
type Region ¶
type Region string
func (Region) MarshalGQL ¶
MarshalGQL implement the Marshaler interface for gqlgen
func (*Region) UnmarshalGQL ¶
UnmarshalGQL implement the Unmarshaler interface for gqlgen
type RiskImpact ¶ added in v0.3.3
type RiskImpact string
var ( RiskImpactLow RiskImpact = "LOW" RiskImpactModerate RiskImpact = "MODERATE" RiskImpactHigh RiskImpact = "HIGH" RiskImpactCritical RiskImpact = "CRITICAL" RiskImpactInvalid RiskImpact = "INVALID" )
func ToRiskImpact ¶ added in v0.3.3
func ToRiskImpact(r string) *RiskImpact
ToRiskImpact returns the user status enum based on string input
func (RiskImpact) MarshalGQL ¶ added in v0.3.3
func (r RiskImpact) MarshalGQL(w io.Writer)
MarshalGQL implement the Marshaler interface for gqlgen
func (RiskImpact) String ¶ added in v0.3.3
func (r RiskImpact) String() string
String returns the RiskImpact as a string
func (*RiskImpact) UnmarshalGQL ¶ added in v0.3.3
func (r *RiskImpact) UnmarshalGQL(v interface{}) error
UnmarshalGQL implement the Unmarshaler interface for gqlgen
func (RiskImpact) Values ¶ added in v0.3.3
func (RiskImpact) Values() (kinds []string)
Values returns a slice of strings that represents all the possible values of the RiskImpact enum. Possible default values are "LOW", "MODERATE", "HIGH", and "CRITICAL"
type RiskLikelihood ¶ added in v0.3.3
type RiskLikelihood string
var ( RiskLikelihoodLow RiskLikelihood = "UNLIKELY" RiskLikelihoodMid RiskLikelihood = "LIKELY" RiskLikelihoodHigh RiskLikelihood = "HIGHLY_LIKELY" RiskLikelihoodInvalid RiskLikelihood = "INVALID" )
func ToRiskLikelihood ¶ added in v0.3.3
func ToRiskLikelihood(r string) *RiskLikelihood
ToRiskLikelihood returns the user status enum based on string input
func (RiskLikelihood) MarshalGQL ¶ added in v0.3.3
func (r RiskLikelihood) MarshalGQL(w io.Writer)
MarshalGQL implement the Marshaler interface for gqlgen
func (RiskLikelihood) String ¶ added in v0.3.3
func (r RiskLikelihood) String() string
String returns the RiskLikelihood as a string
func (*RiskLikelihood) UnmarshalGQL ¶ added in v0.3.3
func (r *RiskLikelihood) UnmarshalGQL(v interface{}) error
UnmarshalGQL implement the Unmarshaler interface for gqlgen
func (RiskLikelihood) Values ¶ added in v0.3.3
func (RiskLikelihood) Values() (kinds []string)
Values returns a slice of strings that represents all the possible values of the RiskLikelihood enum. Possible default values are "UNLIKELY", "LIKELY", and "HIGHLY_LIKELY"
type RiskStatus ¶ added in v0.7.5
type RiskStatus string
RiskStatus is a custom type for risk status
var ( // RiskOpen indicates that the risk is open and has not been mitigated RiskOpen RiskStatus = "OPEN" // RiskInProgress indicates that the risk is being actively worked on RiskInProgress RiskStatus = "IN_PROGRESS" // RiskOngoing indicates that the risk is ongoing and has not been mitigated RiskOngoing RiskStatus = "ONGOING" // RiskMitigated indicates that the risk has been mitigated RiskMitigated RiskStatus = "MITIGATED" // RiskArchived indicates that the risk has been archived and is no longer active RiskArchived RiskStatus = "ARCHIVED" // RiskInvalid indicates that the risk status is invalid RiskInvalid RiskStatus = "RISK_STATUS_INVALID" )
func ToRiskStatus ¶ added in v0.7.5
func ToRiskStatus(r string) *RiskStatus
ToRiskStatus returns the risk status enum based on string input
func (RiskStatus) MarshalGQL ¶ added in v0.7.5
func (r RiskStatus) MarshalGQL(w io.Writer)
MarshalGQL implement the Marshaler interface for gqlgen
func (RiskStatus) String ¶ added in v0.7.5
func (r RiskStatus) String() string
String returns the risk status as a string
func (*RiskStatus) UnmarshalGQL ¶ added in v0.7.5
func (r *RiskStatus) UnmarshalGQL(v interface{}) error
UnmarshalGQL implement the Unmarshaler interface for gqlgen
func (RiskStatus) Values ¶ added in v0.7.5
func (RiskStatus) Values() (kinds []string)
Values returns a slice of strings that represents all the possible values of the RiskStatus enum. Possible default values are "OPEN", "IN_PROGRESS", "ONGOING", "MITIGATED", and "ARCHIVED"
type Role ¶
type Role string
func (Role) MarshalGQL ¶
MarshalGQL implement the Marshaler interface for gqlgen
func (*Role) UnmarshalGQL ¶
UnmarshalGQL implement the Unmarshaler interface for gqlgen
type StandardStatus ¶ added in v0.7.5
type StandardStatus string
StandardStatus is a custom type for standard status
var ( // StandardActive indicates that the standard is active and in use StandardActive StandardStatus = "ACTIVE" // StandardDraft indicates that the standard is in draft status and not yet finalized StandardDraft StandardStatus = "DRAFT" // StandardArchived indicates that the standard has been archived and is no longer active StandardArchived StandardStatus = "ARCHIVED" // StandardInvalid indicates that the standard status is invalid StandardInvalid StandardStatus = "STANDARD_STATUS_INVALID" )
func ToStandardStatus ¶ added in v0.7.5
func ToStandardStatus(r string) *StandardStatus
ToStandardStatus returns the standard status enum based on string input
func (StandardStatus) MarshalGQL ¶ added in v0.7.5
func (r StandardStatus) MarshalGQL(w io.Writer)
MarshalGQL implement the Marshaler interface for gqlgen
func (StandardStatus) String ¶ added in v0.7.5
func (r StandardStatus) String() string
String returns the standard status as a string
func (*StandardStatus) UnmarshalGQL ¶ added in v0.7.5
func (r *StandardStatus) UnmarshalGQL(v interface{}) error
UnmarshalGQL implement the Unmarshaler interface for gqlgen
func (StandardStatus) Values ¶ added in v0.7.5
func (StandardStatus) Values() (kinds []string)
Values returns a slice of strings that represents all the possible values of the StandardStatus enum. Possible default values are "ACTIVE", "DRAFT", and "ARCHIVED"
type TaskStatus ¶ added in v0.3.4
type TaskStatus string
var ( TaskStatusOpen TaskStatus = "OPEN" TaskStatusInProgress TaskStatus = "IN_PROGRESS" TaskStatusInReview TaskStatus = "IN_REVIEW" TaskStatusCompleted TaskStatus = "COMPLETED" TaskStatusWontDo TaskStatus = "WONT_DO" TaskStatusInvalid TaskStatus = "INVALID" )
func ToTaskStatus ¶ added in v0.3.4
func ToTaskStatus(r string) *TaskStatus
ToTaskStatus returns the task status enum based on string input
func (TaskStatus) MarshalGQL ¶ added in v0.3.4
func (r TaskStatus) MarshalGQL(w io.Writer)
MarshalGQL implement the Marshaler interface for gqlgen
func (TaskStatus) String ¶ added in v0.3.4
func (r TaskStatus) String() string
String returns the TaskStatus as a string
func (*TaskStatus) UnmarshalGQL ¶ added in v0.3.4
func (r *TaskStatus) UnmarshalGQL(v interface{}) error
UnmarshalGQL implement the Unmarshaler interface for gqlgen
func (TaskStatus) Values ¶ added in v0.3.4
func (TaskStatus) Values() (kinds []string)
Values returns a slice of strings that represents all the possible values of the TaskStatus enum. Possible default values are "OPEN", "IN_PROGRESS", "IN_REVIEW", "COMPLETED", and "WONT_DO".
type Tier ¶
type Tier string
func (Tier) MarshalGQL ¶
MarshalGQL implement the Marshaler interface for gqlgen
func (*Tier) UnmarshalGQL ¶
UnmarshalGQL implement the Unmarshaler interface for gqlgen
type UserStatus ¶
type UserStatus string
var ( UserStatusActive UserStatus = "ACTIVE" UserStatusInactive UserStatus = "INACTIVE" UserStatusDeactivated UserStatus = "DEACTIVATED" UserStatusSuspended UserStatus = "SUSPENDED" UserStatusOnboarding UserStatus = "ONBOARDING" UserStatusInvalid UserStatus = "INVALID" )
func ToUserStatus ¶
func ToUserStatus(r string) *UserStatus
ToUserStatus returns the user status enum based on string input
func (UserStatus) MarshalGQL ¶
func (r UserStatus) MarshalGQL(w io.Writer)
MarshalGQL implement the Marshaler interface for gqlgen
func (UserStatus) String ¶
func (r UserStatus) String() string
String returns the UserStatus as a string
func (*UserStatus) UnmarshalGQL ¶
func (r *UserStatus) UnmarshalGQL(v interface{}) error
UnmarshalGQL implement the Unmarshaler interface for gqlgen
func (UserStatus) Values ¶
func (UserStatus) Values() (kinds []string)
Values returns a slice of strings that represents all the possible values of the UserStatus enum. Possible default values are "ACTIVE", "INACTIVE", "DEACTIVATED", and "SUSPENDED".
type Visibility ¶
type Visibility string
var ( VisibilityPublic Visibility = "PUBLIC" VisibilityPrivate Visibility = "PRIVATE" VisibilityInvalid Visibility = "INVALID" )
func ToGroupVisibility ¶
func ToGroupVisibility(r string) *Visibility
ToGroupVisibility returns the user status enum based on string input
func (Visibility) MarshalGQL ¶
func (r Visibility) MarshalGQL(w io.Writer)
MarshalGQL implement the Marshaler interface for gqlgen
func (Visibility) String ¶
func (r Visibility) String() string
String returns the visibility as a string
func (*Visibility) UnmarshalGQL ¶
func (r *Visibility) UnmarshalGQL(v interface{}) error
UnmarshalGQL implement the Unmarshaler interface for gqlgen
func (Visibility) Values ¶
func (Visibility) Values() (kinds []string)
Values returns a slice of strings that represents all the possible values of the Visibility enum. Possible default values are "PUBLIC", and "PRIVATE".
Source Files
¶
- auth_provider.go
- controlsource.go
- controltype.go
- doc.go
- documentstatus.go
- documenttype.go
- evidencestatus.go
- frequency.go
- invitestatus.go
- join_policy.go
- permissions.go
- priority.go
- programstatus.go
- region.go
- riskimpact.go
- risklikelihood.go
- riskstatus.go
- role.go
- standardstatus.go
- status.go
- task_status.go
- tier.go
- visibility.go