enums

package
v0.30.10 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package enums has enums

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToTimeWeekday added in v0.15.0

func ToTimeWeekday(r JobWeekday) time.Weekday

ToTimeWeekday maps the human readable enums to Go's weekday type

Types

type AssetType added in v0.19.0

type AssetType string
var (
	AssetTypeTechnology AssetType = "TECHNOLOGY"
	AssetTypeDomain     AssetType = "DOMAIN"
	AssetTypeDevice     AssetType = "DEVICE"
	AssetTypeTelephone  AssetType = "TELEPHONE"
	AssetTypeInvalid    AssetType = "INVALID"
)

func ToAssetType added in v0.19.0

func ToAssetType(str string) *AssetType

func (AssetType) MarshalGQL added in v0.19.0

func (a AssetType) MarshalGQL(w io.Writer)

func (AssetType) String added in v0.19.0

func (a AssetType) String() string

func (*AssetType) UnmarshalGQL added in v0.19.0

func (a *AssetType) UnmarshalGQL(v interface{}) error

func (AssetType) Values added in v0.19.0

func (AssetType) Values() []string

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"
	// OIDC provider for authentication
	AuthProviderOIDC AuthProvider = "OIDC"
	// 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", "WEBAUTHN", and "OIDC"

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 ControlStatus added in v0.8.9

type ControlStatus string
var (
	// ControlStatusNotImplemented indicates that this control has not yet been worked on, this is the default value
	ControlStatusNotImplemented ControlStatus = "NOT_IMPLEMENTED"
	// ControlStatusPreparing indicates the control is being prepared
	ControlStatusPreparing ControlStatus = "PREPARING"
	// ControlStatusNeedsApproval indicates the control needs to be approved before it is available
	ControlStatusNeedsApproval ControlStatus = "NEEDS_APPROVAL"
	// ControlStatusChangesRequested indicates the control was rejected and needs some changes to be approved
	ControlStatusChangesRequested ControlStatus = "CHANGES_REQUESTED"
	// ControlStatusApproved indicates the control is approved
	ControlStatusApproved ControlStatus = "APPROVED"
	// ControlStatusArchived indicates the control is now archived
	ControlStatusArchived ControlStatus = "ARCHIVED"
	// ControlStatusInvalid indicates the control is invalid or unknown
	ControlStatusInvalid ControlStatus = "CONTROL_STATUS_INVALID"
)

func ToControlStatus added in v0.8.9

func ToControlStatus(r string) *ControlStatus

ToControlStatus returns the control type enum based on string input

func (ControlStatus) MarshalGQL added in v0.8.9

func (r ControlStatus) MarshalGQL(w io.Writer)

MarshalGQL implement the Marshaler interface for gqlgen

func (ControlStatus) String added in v0.8.9

func (r ControlStatus) String() string

String returns the ControlStatus as a string

func (*ControlStatus) UnmarshalGQL added in v0.8.9

func (r *ControlStatus) UnmarshalGQL(v interface{}) error

UnmarshalGQL implement the Unmarshaler interface for gqlgen

func (ControlStatus) Values added in v0.8.9

func (ControlStatus) Values() (kinds []string)

Values returns a slice of strings that represents all the possible values of the ControlType enum. Possible default values are "NOT_IMPLEMENTED", "PREPARING", "NEEDS APPROVAL", "CHANGES REQUESTED", "APPROVED" and "ARCHIVED".

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 DNSVerificationStatus added in v0.15.0

type DNSVerificationStatus string
var (
	DNSVerificationStatusActive             DNSVerificationStatus = "active"
	DNSVerificationStatusPending            DNSVerificationStatus = "pending"
	DNSVerificationStatusActiveRedeploying  DNSVerificationStatus = "active_redeploying"
	DNSVerificationStatusMoved              DNSVerificationStatus = "moved"
	DNSVerificationStatusPendingDeletion    DNSVerificationStatus = "pending_deletion"
	DNSVerificationStatusDeleted            DNSVerificationStatus = "deleted"
	DNSVerificationStatusPendingBlocked     DNSVerificationStatus = "pending_blocked"
	DNSVerificationStatusPendingMigration   DNSVerificationStatus = "pending_migration"
	DNSVerificationStatusPendingProvisioned DNSVerificationStatus = "pending_provisioned"
	DNSVerificationStatusTestPending        DNSVerificationStatus = "test_pending"
	DNSVerificationStatusTestActive         DNSVerificationStatus = "test_active"
	DNSVerificationStatusTestActiveApex     DNSVerificationStatus = "test_active_apex"
	DNSVerificationStatusTestBlocked        DNSVerificationStatus = "test_blocked"
	DNSVerificationStatusTestFailed         DNSVerificationStatus = "test_failed"
	DNSVerificationStatusProvisioned        DNSVerificationStatus = "provisioned"
	DNSVerificationStatusBlocked            DNSVerificationStatus = "blocked"
	DNSVerificationStatusInvalid            DNSVerificationStatus = "invalid"
)

func ToDNSVerificationStatus added in v0.15.0

func ToDNSVerificationStatus(r string) *DNSVerificationStatus

ToDNSVerificationStatus returns the user status enum based on string input

func (DNSVerificationStatus) MarshalGQL added in v0.15.0

func (r DNSVerificationStatus) MarshalGQL(w io.Writer)

MarshalGQL implement the Marshaler interface for gqlgen

func (DNSVerificationStatus) String added in v0.15.0

func (r DNSVerificationStatus) String() string

String returns the DNSVerificationStatus as a string

func (*DNSVerificationStatus) UnmarshalGQL added in v0.15.0

func (r *DNSVerificationStatus) UnmarshalGQL(v interface{}) error

UnmarshalGQL implement the Unmarshaler interface for gqlgen

func (DNSVerificationStatus) Values added in v0.15.0

func (DNSVerificationStatus) Values() (kinds []string)

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 (
	// EvidenceSubmitted is the status to indicate that the evidence has been submitted and is ready for internal review
	EvidenceSubmitted EvidenceStatus = "SUBMITTED"
	// EvidenceInReview is the status to indicate that the evidence is currently under internal review
	EvidenceInReview EvidenceStatus = "IN_REVIEW"
	// 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 ExportFormat added in v0.22.3

type ExportFormat string

ExportFormat is a custom type representing the various states of ExportFormat.

var (
	// ExportFormatCsv indicates the csv.
	ExportFormatCsv ExportFormat = "CSV"
	// ExportFormatInvalid is used when an unknown or unsupported value is provided.
	ExportFormatInvalid ExportFormat = "EXPORTFORMAT_INVALID"
)

func ToExportFormat added in v0.22.3

func ToExportFormat(r string) *ExportFormat

ToExportFormat converts a string to its corresponding ExportFormat enum value.

func (ExportFormat) MarshalGQL added in v0.22.3

func (r ExportFormat) MarshalGQL(w io.Writer)

MarshalGQL implements the gqlgen Marshaler interface.

func (ExportFormat) String added in v0.22.3

func (r ExportFormat) String() string

String returns the string representation of the ExportFormat value.

func (*ExportFormat) UnmarshalGQL added in v0.22.3

func (r *ExportFormat) UnmarshalGQL(v interface{}) error

UnmarshalGQL implements the gqlgen Unmarshaler interface.

func (ExportFormat) Values added in v0.22.3

func (ExportFormat) Values() []string

Values returns a slice of strings representing all valid ExportFormat values.

type ExportStatus added in v0.22.3

type ExportStatus string

ExportStatus is a custom type representing the various states of ExportStatus.

var (
	// ExportStatusPending indicates the pending.
	ExportStatusPending ExportStatus = "PENDING"
	// ExportStatusFailed indicates the failed.
	ExportStatusFailed ExportStatus = "FAILED"
	// ExportStatusReady indicates the ready.
	ExportStatusReady ExportStatus = "READY"
	// ExportStatusNodata indicates the nodata.
	ExportStatusNodata ExportStatus = "NODATA"
	// ExportStatusInvalid is used when an unknown or unsupported value is provided.
	ExportStatusInvalid ExportStatus = "EXPORTSTATUS_INVALID"
)

func ToExportStatus added in v0.22.3

func ToExportStatus(r string) *ExportStatus

ToExportStatus converts a string to its corresponding ExportStatus enum value.

func (ExportStatus) MarshalGQL added in v0.22.3

func (r ExportStatus) MarshalGQL(w io.Writer)

MarshalGQL implements the gqlgen Marshaler interface.

func (ExportStatus) String added in v0.22.3

func (r ExportStatus) String() string

String returns the string representation of the ExportStatus value.

func (*ExportStatus) UnmarshalGQL added in v0.22.3

func (r *ExportStatus) UnmarshalGQL(v interface{}) error

UnmarshalGQL implements the gqlgen Unmarshaler interface.

func (ExportStatus) Values added in v0.22.3

func (ExportStatus) Values() []string

Values returns a slice of strings representing all valid ExportStatus values.

type ExportType added in v0.22.3

type ExportType string

ExportType is a custom type representing the various states of ExportType.

var (
	// ExportTypeControl indicates the control.
	ExportTypeControl ExportType = "CONTROL"
	// ExportTypeEvidence indicates the evidence.
	ExportTypeEvidence ExportType = "EVIDENCE"
	// ExportTypeInternalPolicy indicates the internalpolicy.
	ExportTypeInternalPolicy ExportType = "INTERNAL_POLICY"
	// ExportTypeProcedure indicates the procedure.
	ExportTypeProcedure ExportType = "PROCEDURE"
	// ExportTypeRisk indicates the risk.
	ExportTypeRisk ExportType = "RISK"
	// ExportTypeSubscriber indicates the subscriber.
	ExportTypeSubscriber ExportType = "SUBSCRIBER"
	// ExportTypeTask indicates the task.
	ExportTypeTask ExportType = "TASK"
	// ExportTypeInvalid is used when an unknown or unsupported value is provided.
	ExportTypeInvalid ExportType = "EXPORTTYPE_INVALID"
)

func ToExportType added in v0.22.3

func ToExportType(r string) *ExportType

ToExportType converts a string to its corresponding ExportType enum value.

func (ExportType) MarshalGQL added in v0.22.3

func (r ExportType) MarshalGQL(w io.Writer)

MarshalGQL implements the gqlgen Marshaler interface.

func (ExportType) String added in v0.22.3

func (r ExportType) String() string

String returns the string representation of the ExportType value.

func (*ExportType) UnmarshalGQL added in v0.22.3

func (r *ExportType) UnmarshalGQL(v interface{}) error

UnmarshalGQL implements the gqlgen Unmarshaler interface.

func (ExportType) Values added in v0.22.3

func (ExportType) Values() []string

Values returns a slice of strings representing all valid ExportType values.

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

func ToFrequency(r string) *Frequency

ToFrequency returns the frequency enum based on string input

func (Frequency) MarshalGQL added in v0.7.5

func (r Frequency) MarshalGQL(w io.Writer)

MarshalGQL implement the Marshaler interface for gqlgen

func (Frequency) String added in v0.7.5

func (r Frequency) String() string

String returns the frequency as a string

func (*Frequency) UnmarshalGQL added in v0.7.5

func (r *Frequency) UnmarshalGQL(v interface{}) error

UnmarshalGQL implement the Unmarshaler interface for gqlgen

func (Frequency) Values added in v0.7.5

func (Frequency) Values() (kinds []string)

Values returns a slice of strings that represents all the possible values of the Frequency enum. Possible default values are "YEARLY", "QUARTERLY", "BIANNUALLY", and "MONTHLY"

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 JobCadenceFrequency added in v0.14.1

type JobCadenceFrequency string

JobCadenceFrequency is a custom type representing the various states of JobCadenceFrequency.

var (
	// JobCadenceFrequencyDaily indicates the daily.
	JobCadenceFrequencyDaily JobCadenceFrequency = "DAILY"
	// JobCadenceFrequencyWeekly indicates the weekly.
	JobCadenceFrequencyWeekly JobCadenceFrequency = "WEEKLY"
	// JobCadenceFrequencyMonthly indicates the monthly.
	JobCadenceFrequencyMonthly JobCadenceFrequency = "MONTHLY"
	// JobCadenceFrequencyInvalid is used when an unknown or unsupported value is provided.
	JobCadenceFrequencyInvalid JobCadenceFrequency = "JOBCADENCEFREQUENCY_INVALID"
)

func ToJobCadenceFrequency added in v0.14.1

func ToJobCadenceFrequency(r string) *JobCadenceFrequency

ToJobCadenceFrequency converts a string to its corresponding JobCadenceFrequency enum value.

func (JobCadenceFrequency) MarshalGQL added in v0.14.1

func (r JobCadenceFrequency) MarshalGQL(w io.Writer)

MarshalGQL implements the gqlgen Marshaler interface.

func (JobCadenceFrequency) String added in v0.14.1

func (r JobCadenceFrequency) String() string

String returns the string representation of the JobCadenceFrequency value.

func (*JobCadenceFrequency) UnmarshalGQL added in v0.14.1

func (r *JobCadenceFrequency) UnmarshalGQL(v interface{}) error

UnmarshalGQL implements the gqlgen Unmarshaler interface.

func (JobCadenceFrequency) Values added in v0.14.1

func (JobCadenceFrequency) Values() []string

Values returns a slice of strings representing all valid JobCadenceFrequency values.

type JobEnvironment added in v0.14.1

type JobEnvironment string

JobEnvironment is a custom type representing the various states of JobEnvironment.

var (
	// JobEnvironmentOpenlane indicates the openlane.
	JobEnvironmentOpenlane JobEnvironment = "OPENLANE"
	// JobEnvironmentExternal indicates the external.
	JobEnvironmentExternal JobEnvironment = "EXTERNAL"
	// JobEnvironmentInvalid is used when an unknown or unsupported value is provided.
	JobEnvironmentInvalid JobEnvironment = "JOBENVIRONMENT_INVALID"
)

func ToJobEnvironment added in v0.14.1

func ToJobEnvironment(r string) *JobEnvironment

ToJobEnvironment converts a string to its corresponding JobEnvironment enum value.

func (JobEnvironment) MarshalGQL added in v0.14.1

func (r JobEnvironment) MarshalGQL(w io.Writer)

MarshalGQL implements the gqlgen Marshaler interface.

func (JobEnvironment) String added in v0.14.1

func (r JobEnvironment) String() string

String returns the string representation of the JobEnvironment value.

func (*JobEnvironment) UnmarshalGQL added in v0.14.1

func (r *JobEnvironment) UnmarshalGQL(v interface{}) error

UnmarshalGQL implements the gqlgen Unmarshaler interface.

func (JobEnvironment) Values added in v0.14.1

func (JobEnvironment) Values() []string

Values returns a slice of strings representing all valid JobEnvironment values.

type JobExecutionStatus added in v0.15.0

type JobExecutionStatus string

JobExecutionStatus is a custom type representing the various states of JobExecutionStatus.

var (
	// JobExecutionStatusCanceled indicates the canceled.
	JobExecutionStatusCanceled JobExecutionStatus = "CANCELED"
	// JobExecutionStatusSuccess indicates the success.
	JobExecutionStatusSuccess JobExecutionStatus = "SUCCESS"
	// JobExecutionStatusPending indicates the pending.
	JobExecutionStatusPending JobExecutionStatus = "PENDING"
	// JobExecutionStatusFailed indicates the failed.
	JobExecutionStatusFailed JobExecutionStatus = "FAILED"
	// JobExecutionStatusInvalid is used when an unknown or unsupported value is provided.
	JobExecutionStatusInvalid JobExecutionStatus = "JOBEXECUTIONSTATUS_INVALID"
)

func ToJobExecutionStatus added in v0.15.0

func ToJobExecutionStatus(r string) *JobExecutionStatus

ToJobExecutionStatus converts a string to its corresponding JobExecutionStatus enum value.

func (JobExecutionStatus) MarshalGQL added in v0.15.0

func (r JobExecutionStatus) MarshalGQL(w io.Writer)

MarshalGQL implements the gqlgen Marshaler interface.

func (JobExecutionStatus) String added in v0.15.0

func (r JobExecutionStatus) String() string

String returns the string representation of the JobExecutionStatus value.

func (*JobExecutionStatus) UnmarshalGQL added in v0.15.0

func (r *JobExecutionStatus) UnmarshalGQL(v interface{}) error

UnmarshalGQL implements the gqlgen Unmarshaler interface.

func (JobExecutionStatus) Values added in v0.15.0

func (JobExecutionStatus) Values() []string

Values returns a slice of strings representing all valid JobExecutionStatus values.

type JobPlatformType added in v0.23.4

type JobPlatformType string

JobPlatformType is a custom type representing the various states of JobPlatformType.

var (
	// JobPlatformTypeGo indicates the go.
	JobPlatformTypeGo JobPlatformType = "GO"
	// JobPlatformTypeTs indicates the ts.
	JobPlatformTypeTs JobPlatformType = "TS"
	// JobPlatformTypeInvalid is used when an unknown or unsupported value is provided.
	JobPlatformTypeInvalid JobPlatformType = "JOBPLATFORMTYPE_INVALID"
)

func ToJobPlatformType added in v0.23.4

func ToJobPlatformType(r string) *JobPlatformType

ToJobPlatformType converts a string to its corresponding JobPlatformType enum value.

func (JobPlatformType) MarshalGQL added in v0.23.4

func (r JobPlatformType) MarshalGQL(w io.Writer)

MarshalGQL implements the gqlgen Marshaler interface.

func (JobPlatformType) String added in v0.23.4

func (r JobPlatformType) String() string

String returns the string representation of the JobPlatformType value.

func (*JobPlatformType) UnmarshalGQL added in v0.23.4

func (r *JobPlatformType) UnmarshalGQL(v interface{}) error

UnmarshalGQL implements the gqlgen Unmarshaler interface.

func (JobPlatformType) Values added in v0.23.4

func (JobPlatformType) Values() []string

Values returns a slice of strings representing all valid JobPlatformType values.

type JobRunnerStatus added in v0.14.1

type JobRunnerStatus string

JobRunnerStatus is a custom type representing the various states of JobRunnerStatus.

var (
	// JobRunnerStatusOnline indicates the online.
	JobRunnerStatusOnline JobRunnerStatus = "ONLINE"
	// JobRunnerStatusOffline indicates the offline.
	JobRunnerStatusOffline JobRunnerStatus = "OFFLINE"
	// JobRunnerStatusInvalid is used when an unknown or unsupported value is provided.
	JobRunnerStatusInvalid JobRunnerStatus = "JOBRUNNERSTATUS_INVALID"
)

func ToJobRunnerStatus added in v0.14.1

func ToJobRunnerStatus(r string) *JobRunnerStatus

ToJobRunnerStatus converts a string to its corresponding JobRunnerStatus enum value.

func (JobRunnerStatus) MarshalGQL added in v0.14.1

func (r JobRunnerStatus) MarshalGQL(w io.Writer)

MarshalGQL implements the gqlgen Marshaler interface.

func (JobRunnerStatus) String added in v0.14.1

func (r JobRunnerStatus) String() string

String returns the string representation of the JobRunnerStatus value.

func (*JobRunnerStatus) UnmarshalGQL added in v0.14.1

func (r *JobRunnerStatus) UnmarshalGQL(v interface{}) error

UnmarshalGQL implements the gqlgen Unmarshaler interface.

func (JobRunnerStatus) Values added in v0.14.1

func (JobRunnerStatus) Values() []string

Values returns a slice of strings representing all valid JobRunnerStatus values.

type JobWeekday added in v0.14.1

type JobWeekday string

JobWeekday is a custom type representing the various states of JobWeekday.

var (
	// JobWeekdaySunday indicates the sunday.
	JobWeekdaySunday JobWeekday = "SUNDAY"
	// JobWeekdayMonday indicates the monday.
	JobWeekdayMonday JobWeekday = "MONDAY"
	// JobWeekdayTuesday indicates the tuesday.
	JobWeekdayTuesday JobWeekday = "TUESDAY"
	// JobWeekdayWednesday indicates the wednesday.
	JobWeekdayWednesday JobWeekday = "WEDNESDAY"
	// JobWeekdayThursday indicates the thursday.
	JobWeekdayThursday JobWeekday = "THURSDAY"
	// JobWeekdayFriday indicates the friday.
	JobWeekdayFriday JobWeekday = "FRIDAY"
	// JobWeekdaySaturday indicates the saturday.
	JobWeekdaySaturday JobWeekday = "SATURDAY"
	// JobWeekdayInvalid is used when an unknown or unsupported value is provided.
	JobWeekdayInvalid JobWeekday = "JOBWEEKDAY_INVALID"
)

func ToJobWeekday added in v0.14.1

func ToJobWeekday(r string) *JobWeekday

ToJobWeekday converts a string to its corresponding JobWeekday enum value.

func (JobWeekday) MarshalGQL added in v0.14.1

func (r JobWeekday) MarshalGQL(w io.Writer)

MarshalGQL implements the gqlgen Marshaler interface.

func (JobWeekday) String added in v0.14.1

func (r JobWeekday) String() string

String returns the string representation of the JobWeekday value.

func (*JobWeekday) UnmarshalGQL added in v0.14.1

func (r *JobWeekday) UnmarshalGQL(v interface{}) error

UnmarshalGQL implements the gqlgen Unmarshaler interface.

func (JobWeekday) Values added in v0.14.1

func (JobWeekday) Values() []string

Values returns a slice of strings representing all valid JobWeekday values.

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 MappingSource added in v0.16.0

type MappingSource string

MappingSource is a custom type representing the various states of MappingSource.

var (
	// MappingSourceManual indicates the mapping is manual
	MappingSourceManual MappingSource = "MANUAL"
	// MappingSourceSuggested indicates the mapping was suggested
	MappingSourceSuggested MappingSource = "SUGGESTED"
	// MappingSourceImported indicates the  mapping was imported
	MappingSourceImported MappingSource = "IMPORTED"
	// MappingSourceInvalid is used when an unknown or unsupported value is provided.
	MappingSourceInvalid MappingSource = "MAPPINGSOURCE_INVALID"
)

func ToMappingSource added in v0.16.0

func ToMappingSource(r string) *MappingSource

ToMappingSource converts a string to its corresponding MappingSource enum value.

func (MappingSource) MarshalGQL added in v0.16.0

func (r MappingSource) MarshalGQL(w io.Writer)

MarshalGQL implements the gqlgen Marshaler interface.

func (MappingSource) String added in v0.16.0

func (r MappingSource) String() string

String returns the string representation of the MappingSource value.

func (*MappingSource) UnmarshalGQL added in v0.16.0

func (r *MappingSource) UnmarshalGQL(v interface{}) error

UnmarshalGQL implements the gqlgen Unmarshaler interface.

func (MappingSource) Values added in v0.16.0

func (MappingSource) Values() []string

Values returns a slice of strings representing all valid MappingSource values.

type MappingType added in v0.16.0

type MappingType string

MappingType is a custom type representing the various states of MappingType.

var (
	// MappingTypeEqual indicates the two sets are equivalent
	MappingTypeEqual MappingType = "EQUAL"
	// MappingTypeSuperset indicates the mapping is superset
	MappingTypeSuperset MappingType = "SUPERSET"
	// MappingTypeSubset indicates the mapping is subset
	MappingTypeSubset MappingType = "SUBSET"
	// MappingTypeIntersect indicates the overlap is an intersection
	MappingTypeIntersect MappingType = "INTERSECT"
	// MappingTypePartial indicates a partial overlap, but the exact type is unspecified
	MappingTypePartial MappingType = "PARTIAL"
	// MappingTypeInvalid is used when an unknown or unsupported value is provided.
	MappingTypeInvalid MappingType = "MAPPINGTYPE_INVALID"
)

func ToMappingType added in v0.16.0

func ToMappingType(r string) *MappingType

ToMappingType converts a string to its corresponding MappingType enum value.

func (MappingType) MarshalGQL added in v0.16.0

func (r MappingType) MarshalGQL(w io.Writer)

MarshalGQL implements the gqlgen Marshaler interface.

func (MappingType) String added in v0.16.0

func (r MappingType) String() string

String returns the string representation of the MappingType value.

func (*MappingType) UnmarshalGQL added in v0.16.0

func (r *MappingType) UnmarshalGQL(v interface{}) error

UnmarshalGQL implements the gqlgen Unmarshaler interface.

func (MappingType) Values added in v0.16.0

func (MappingType) Values() []string

Values returns a slice of strings representing all valid MappingType values.

type ObjectiveStatus added in v0.10.1

type ObjectiveStatus string

ObjectiveStatus is a custom type for control objective

var (
	// ObjectiveActiveStatus indicates it is currently in draft mode
	ObjectiveDraftStatus ObjectiveStatus = "DRAFT"
	// ObjectiveArchivedStatus indicates it is currently archived
	ObjectiveArchivedStatus ObjectiveStatus = "ARCHIVED"
	// ObjectiveActiveStatus indicates it is currently active
	ObjectiveActiveStatus ObjectiveStatus = "ACTIVE"
)

func ToObjectiveStatus added in v0.10.1

func ToObjectiveStatus(r string) *ObjectiveStatus

ToObjectiveStatus returns the objective status enum based on string input

func (ObjectiveStatus) MarshalGQL added in v0.10.1

func (r ObjectiveStatus) MarshalGQL(w io.Writer)

MarshalGQL implement the Marshaler interface for gqlgen

func (ObjectiveStatus) String added in v0.10.1

func (r ObjectiveStatus) String() string

String returns the objective status as a string

func (*ObjectiveStatus) UnmarshalGQL added in v0.10.1

func (r *ObjectiveStatus) UnmarshalGQL(v interface{}) error

UnmarshalGQL implement the Unmarshaler interface for gqlgen

func (ObjectiveStatus) Values added in v0.10.1

func (ObjectiveStatus) Values() (kinds []string)

Values returns a slice of strings that represents all the possible values of the ObjectiveStatus enum. Possible default values are "DRAFT", "ARCHIVED", and "ACTIVE"

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

func ToPriority(r string) *Priority

ToPriority returns the user status enum based on string input

func (Priority) MarshalGQL added in v0.6.11

func (r Priority) MarshalGQL(w io.Writer)

MarshalGQL implement the Marshaler interface for gqlgen

func (Priority) String added in v0.6.11

func (r Priority) String() string

String returns the Priority as a string

func (*Priority) UnmarshalGQL added in v0.6.11

func (r *Priority) UnmarshalGQL(v interface{}) error

UnmarshalGQL implement the Unmarshaler interface for gqlgen

func (Priority) Values added in v0.6.11

func (Priority) Values() (kinds []string)

Values returns a slice of strings that represents all the possible values of the Priority enum. Possible default values are "LOW", "MEDIUM", "HIGH", and "CRITICAL".

type ProgramStatus added in v0.3.5

type ProgramStatus string

ProgramStatus is a custom type representing the various states of ProgramStatus.

var (
	// ProgramStatusNotStarted indicates the not started status.
	ProgramStatusNotStarted ProgramStatus = "NOT_STARTED"
	// ProgramStatusInProgress indicates the in progress status.
	ProgramStatusInProgress ProgramStatus = "IN_PROGRESS"
	// ProgramStatusActionRequired indicates an action required.
	ProgramStatusActionRequired ProgramStatus = "ACTION_REQUIRED"
	// ProgramStatusReadyForAuditor indicates the ready for auditor.
	ProgramStatusReadyForAuditor ProgramStatus = "READY_FOR_AUDITOR"
	// ProgramStatusCompleted indicates the completed status.
	ProgramStatusCompleted ProgramStatus = "COMPLETED"
	// ProgramStatusArchived indicates the archived status.
	ProgramStatusArchived ProgramStatus = "ARCHIVED"
	// ProgramStatusInvalid is used when an unknown or unsupported value is provided.
	ProgramStatusInvalid ProgramStatus = "INVALID"
)

func ToProgramStatus added in v0.3.5

func ToProgramStatus(r string) *ProgramStatus

ToProgramStatus converts a string to its corresponding ProgramStatus enum value.

func (ProgramStatus) MarshalGQL added in v0.3.5

func (r ProgramStatus) MarshalGQL(w io.Writer)

MarshalGQL implements the gqlgen Marshaler interface.

func (ProgramStatus) String added in v0.3.5

func (r ProgramStatus) String() string

String returns the string representation of the ProgramStatus value.

func (*ProgramStatus) UnmarshalGQL added in v0.3.5

func (r *ProgramStatus) UnmarshalGQL(v interface{}) error

UnmarshalGQL implements the gqlgen Unmarshaler interface.

func (ProgramStatus) Values added in v0.3.5

func (ProgramStatus) Values() []string

Values returns a slice of strings representing all valid ProgramStatus values.

type ProgramType added in v0.10.8

type ProgramType string

ProgramType is a custom type representing the various states of ProgramType.

var (
	// ProgramTypeFramework indicates the framework.
	ProgramTypeFramework ProgramType = "FRAMEWORK"
	// ProgramTypeGapAnalysis indicates the gap analysis.
	ProgramTypeGapAnalysis ProgramType = "GAP_ANALYSIS"
	// ProgramTypeRiskAssessment indicates the risk assessment.
	ProgramTypeRiskAssessment ProgramType = "RISK_ASSESSMENT"
	// ProgramTypeOther indicates the other.
	ProgramTypeOther ProgramType = "OTHER"
	// ProgramTypeInvalid is used when an unknown or unsupported value is provided.
	ProgramTypeInvalid ProgramType = "PROGRAMTYPE_INVALID"
)

func ToProgramType added in v0.10.8

func ToProgramType(r string) *ProgramType

ToProgramType converts a string to its corresponding ProgramType enum value.

func (ProgramType) MarshalGQL added in v0.10.8

func (r ProgramType) MarshalGQL(w io.Writer)

MarshalGQL implements the gqlgen Marshaler interface.

func (ProgramType) String added in v0.10.8

func (r ProgramType) String() string

String returns the string representation of the ProgramType value.

func (*ProgramType) UnmarshalGQL added in v0.10.8

func (r *ProgramType) UnmarshalGQL(v interface{}) error

UnmarshalGQL implements the gqlgen Unmarshaler interface.

func (ProgramType) Values added in v0.10.8

func (ProgramType) Values() []string

Values returns a slice of strings representing all valid ProgramType values.

type Region

type Region string
var (
	Amer          Region = "AMER"
	Emea          Region = "EMEA"
	Apac          Region = "APAC"
	InvalidRegion Region = "INVALID"
)

func ToRegion

func ToRegion(p string) *Region

ToRegion returns the database provider enum based on string input

func (Region) MarshalGQL

func (r Region) MarshalGQL(w io.Writer)

MarshalGQL implement the Marshaler interface for gqlgen

func (Region) String

func (r Region) String() string

String returns the Region as a string

func (*Region) UnmarshalGQL

func (r *Region) UnmarshalGQL(v interface{}) error

UnmarshalGQL implement the Unmarshaler interface for gqlgen

func (Region) Values

func (Region) Values() (kinds []string)

Values returns a slice of strings that represents all the possible values of the Region enum. Possible default values are "AMER", "EMEA", and "APAC"

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
var (
	RoleOwner   Role = "OWNER"
	RoleAdmin   Role = "ADMIN"
	RoleMember  Role = "MEMBER"
	RoleUser    Role = "USER"
	RoleInvalid Role = "INVALID"
)

func ToRole

func ToRole(r string) *Role

ToRole returns the Role based on string input

func (Role) MarshalGQL

func (r Role) MarshalGQL(w io.Writer)

MarshalGQL implement the Marshaler interface for gqlgen

func (Role) String

func (r Role) String() string

String returns the role as a string

func (*Role) UnmarshalGQL

func (r *Role) UnmarshalGQL(v interface{}) error

UnmarshalGQL implement the Unmarshaler interface for gqlgen

func (Role) Values

func (Role) Values() (kinds []string)

Values returns a slice of strings that represents all the possible values of the Role enum. Possible default values are "ADMIN", "MEMBER"

type SSLVerificationStatus added in v0.15.0

type SSLVerificationStatus string
var (
	SSLVerificationStatusInitializing         SSLVerificationStatus = "initializing"
	SSLVerificationStatusPendingValidation    SSLVerificationStatus = "pending_validation"
	SSLVerificationStatusDeleted              SSLVerificationStatus = "deleted"
	SSLVerificationStatusPendingIssuance      SSLVerificationStatus = "pending_issuance"
	SSLVerificationStatusPendingDeployment    SSLVerificationStatus = "pending_deployment"
	SSLVerificationStatusPendingDeletion      SSLVerificationStatus = "pending_deletion"
	SSLVerificationStatusPendingExpiration    SSLVerificationStatus = "pending_expiration"
	SSLVerificationStatusExpired              SSLVerificationStatus = "expired"
	SSLVerificationStatusActive               SSLVerificationStatus = "active"
	SSLVerificationStatusInitializingTimedOut SSLVerificationStatus = "initializing_timed_out"
	SSLVerificationStatusValidationTimedOut   SSLVerificationStatus = "validation_timed_out"
	SSLVerificationStatusIssuanceTimedOut     SSLVerificationStatus = "issuance_timed_out"
	SSLVerificationStatusDeploymentTimedOut   SSLVerificationStatus = "deployment_timed_out"
	SSLVerificationStatusDeletionTimedOut     SSLVerificationStatus = "deletion_timed_out"
	SSLVerificationStatusPendingCleanup       SSLVerificationStatus = "pending_cleanup"
	SSLVerificationStatusStagingDeployment    SSLVerificationStatus = "staging_deployment"
	SSLVerificationStatusStagingActive        SSLVerificationStatus = "staging_active"
	SSLVerificationStatusDeactivating         SSLVerificationStatus = "deactivating"
	SSLVerificationStatusInactive             SSLVerificationStatus = "inactive"
	SSLVerificationStatusBackupIssued         SSLVerificationStatus = "backup_issued"
	SSLVerificationStatusHoldingDeployment    SSLVerificationStatus = "holding_deployment"
	SSLVerificationStatusInvalid              SSLVerificationStatus = "invalid"
)

func ToSSLVerificationStatus added in v0.15.0

func ToSSLVerificationStatus(r string) *SSLVerificationStatus

ToSSLVerificationStatus returns the user status enum based on string input

func (SSLVerificationStatus) MarshalGQL added in v0.15.0

func (r SSLVerificationStatus) MarshalGQL(w io.Writer)

MarshalGQL implement the Marshaler interface for gqlgen

func (SSLVerificationStatus) String added in v0.15.0

func (r SSLVerificationStatus) String() string

String returns the SSLVerificationStatus as a string

func (*SSLVerificationStatus) UnmarshalGQL added in v0.15.0

func (r *SSLVerificationStatus) UnmarshalGQL(v interface{}) error

UnmarshalGQL implement the Unmarshaler interface for gqlgen

func (SSLVerificationStatus) Values added in v0.15.0

func (SSLVerificationStatus) Values() (kinds []string)

type SSOProvider added in v0.19.0

type SSOProvider string
var (
	SSOProviderOkta            SSOProvider = "OKTA"
	SSOProviderOneLogin        SSOProvider = "ONELOGIN"
	SSOProviderGoogleWorkspace SSOProvider = "GOOGLEWORKSPACE"
	SSOProviderSlack           SSOProvider = "SLACK"
	SSOProviderGithub          SSOProvider = "GITHUB"
	SSOProviderNone            SSOProvider = "NONE"
	SSOProviderInvalid         SSOProvider = "INVALID"
)

func ToSSOProvider added in v0.19.0

func ToSSOProvider(in string) *SSOProvider

func (SSOProvider) MarshalGQL added in v0.19.0

func (p SSOProvider) MarshalGQL(w io.Writer)

func (SSOProvider) String added in v0.19.0

func (p SSOProvider) String() string

func (*SSOProvider) UnmarshalGQL added in v0.19.0

func (p *SSOProvider) UnmarshalGQL(v interface{}) error

func (SSOProvider) Values added in v0.19.0

func (SSOProvider) Values() (kinds []string)

Values returns all possible SSOProvider values.

type ScanStatus added in v0.19.0

type ScanStatus string
var (
	ScanStatusPending    ScanStatus = "PENDING"
	ScanStatusProcessing ScanStatus = "PROCESSING"
	ScanStatusCompleted  ScanStatus = "COMPLETED"
	ScanStatusFailed     ScanStatus = "FAILED"
	ScanStatusInvalid    ScanStatus = "INVALID"
)

func ToScanStatus added in v0.19.0

func ToScanStatus(str string) *ScanStatus

func (ScanStatus) MarshalGQL added in v0.19.0

func (s ScanStatus) MarshalGQL(w io.Writer)

func (ScanStatus) String added in v0.19.0

func (s ScanStatus) String() string

func (*ScanStatus) UnmarshalGQL added in v0.19.0

func (s *ScanStatus) UnmarshalGQL(v interface{}) error

func (ScanStatus) Values added in v0.19.0

func (ScanStatus) Values() (kinds []string)

type ScanType added in v0.19.0

type ScanType string
var (
	ScanTypeDomain        ScanType = "DOMAIN"
	ScanTypeVulnerability ScanType = "VULNERABILITY"
	ScanTypeVendor        ScanType = "VENDOR"
	ScanTypeProvider      ScanType = "PROVIDER"
	ScanTypeInvalid       ScanType = "INVALID"
)

func ToScanType added in v0.19.0

func ToScanType(str string) *ScanType

func (ScanType) MarshalGQL added in v0.19.0

func (s ScanType) MarshalGQL(w io.Writer)

func (ScanType) String added in v0.19.0

func (s ScanType) String() string

func (*ScanType) UnmarshalGQL added in v0.19.0

func (s *ScanType) UnmarshalGQL(v interface{}) error

func (ScanType) Values added in v0.19.0

func (ScanType) Values() []string

type ScheduledJobRunStatus added in v0.15.0

type ScheduledJobRunStatus string

ScheduledJobRunStatus is a custom type representing the various states of ScheduledJobRunStatus.

var (
	// ScheduledJobRunStatusPending indicates the pending.
	ScheduledJobRunStatusPending ScheduledJobRunStatus = "PENDING"
	// ScheduledJobRunStatusAcquired indicates the acquired.
	ScheduledJobRunStatusAcquired ScheduledJobRunStatus = "ACQUIRED"
	// ScheduledJobRunStatusInvalid is used when an unknown or unsupported value is provided.
	ScheduledJobRunStatusInvalid ScheduledJobRunStatus = "SCHEDULEDJOBRUNSTATUS_INVALID"
)

func ToScheduledJobRunStatus added in v0.15.0

func ToScheduledJobRunStatus(r string) *ScheduledJobRunStatus

ToScheduledJobRunStatus converts a string to its corresponding ScheduledJobRunStatus enum value.

func (ScheduledJobRunStatus) MarshalGQL added in v0.15.0

func (r ScheduledJobRunStatus) MarshalGQL(w io.Writer)

MarshalGQL implements the gqlgen Marshaler interface.

func (ScheduledJobRunStatus) String added in v0.15.0

func (r ScheduledJobRunStatus) String() string

String returns the string representation of the ScheduledJobRunStatus value.

func (*ScheduledJobRunStatus) UnmarshalGQL added in v0.15.0

func (r *ScheduledJobRunStatus) UnmarshalGQL(v interface{}) error

UnmarshalGQL implements the gqlgen Unmarshaler interface.

func (ScheduledJobRunStatus) Values added in v0.15.0

func (ScheduledJobRunStatus) Values() []string

Values returns a slice of strings representing all valid ScheduledJobRunStatus values.

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
var (
	TierFree       Tier = "FREE"
	TierPro        Tier = "PRO"
	TierEnterprise Tier = "ENTERPRISE"
	TierInvalid    Tier = "INVALID"
)

func ToTier

func ToTier(r string) *Tier

ToTier returns the Tier based on string input

func (Tier) MarshalGQL

func (r Tier) MarshalGQL(w io.Writer)

MarshalGQL implement the Marshaler interface for gqlgen

func (Tier) String

func (r Tier) String() string

String returns the Tier as a string

func (*Tier) UnmarshalGQL

func (r *Tier) UnmarshalGQL(v interface{}) error

UnmarshalGQL implement the Unmarshaler interface for gqlgen

func (Tier) Values

func (Tier) Values() (kinds []string)

Values returns a slice of strings that represents all the possible values of the Tier enum. Possible default values are "FREE", "PRO" and "ENTERPRISE".

type TrustCenterThemeMode added in v0.22.0

type TrustCenterThemeMode string
var (
	// TrustCenterThemeModeEasy is the easy theme mode
	TrustCenterThemeModeEasy TrustCenterThemeMode = "EASY"
	// TrustCenterThemeModeAdvanced is the advanced theme mode
	TrustCenterThemeModeAdvanced TrustCenterThemeMode = "ADVANCED"
	// TrustCenterThemeModeInvalid is the invalid theme mode
	TrustCenterThemeModeInvalid TrustCenterThemeMode = "INVALID"
)

func ToTrustCenterThemeMode added in v0.22.0

func ToTrustCenterThemeMode(r string) *TrustCenterThemeMode

ToTrustCenterThemeMode returns the trust center theme mode enum based on string input

func (TrustCenterThemeMode) MarshalGQL added in v0.22.0

func (r TrustCenterThemeMode) MarshalGQL(w io.Writer)

MarshalGQL implement the Marshaler interface for gqlgen

func (TrustCenterThemeMode) String added in v0.22.0

func (r TrustCenterThemeMode) String() string

String returns the TrustCenterThemeMode as a string

func (*TrustCenterThemeMode) UnmarshalGQL added in v0.22.0

func (r *TrustCenterThemeMode) UnmarshalGQL(v interface{}) error

UnmarshalGQL implement the Unmarshaler interface for gqlgen

func (TrustCenterThemeMode) Values added in v0.22.0

func (TrustCenterThemeMode) Values() (kinds []string)

Values returns a slice of strings that represents all the possible values of the TrustCenterThemeMode enum. Possible default values are "EASY" and "ADVANCED"

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".

Directories

Path Synopsis
package exportenums generates the enums for the export types based on the entx annotation
package exportenums generates the enums for the export types based on the entx annotation

Jump to

Keyboard shortcuts

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