scalar

package
v0.0.0-...-fbec99b Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const DateFormatYYYYMMDD = "2006-01-02"

Variables

This section is empty.

Functions

func MarshalUUID

func MarshalUUID(id uuid.UUID) graphql.Marshaler

func UnmarshalUUID

func UnmarshalUUID(v any) (uuid.UUID, error)

Types

type Date

type Date string

func NewDate

func NewDate(t time.Time) Date

NewDate returns a Date from a time.Time

func (Date) MarshalGQLContext

func (d Date) MarshalGQLContext(_ context.Context, w io.Writer) error

func (Date) PgDate

func (d Date) PgDate() (date pgtype.Date, err error)

PgDate returns the Date as a pgtype.Date instance

func (Date) String

func (d Date) String() string

String returns the Date as a string

func (Date) Time

func (d Date) Time() (time.Time, error)

Time returns the Date as a time.Time instance

func (*Date) UnmarshalGQLContext

func (d *Date) UnmarshalGQLContext(_ context.Context, v interface{}) error

type Ident

type Ident struct {
	ID   string
	Type IdentType
}

func AnalysisTrailIdent

func AnalysisTrailIdent(projectID, componentID, vulnerabilityID string) Ident

func AppIdent

func AppIdent(envName string, teamSlug slug.Slug, appName string) Ident

func AuditEventIdent

func AuditEventIdent(id uuid.UUID) Ident

func AuditLogIdent

func AuditLogIdent(id uuid.UUID) Ident

func BigQueryDatasetIdent

func BigQueryDatasetIdent(envName string, teamSlug slug.Slug, datasetName string) Ident

func BucketIdent

func BucketIdent(envName string, teamSlug slug.Slug, bucketName string) Ident

func CorrelationID

func CorrelationID(id uuid.UUID) Ident

func DeployKeyIdent

func DeployKeyIdent(teamSlug slug.Slug) Ident

func DeploymentIdent

func DeploymentIdent(id string) Ident

func DeploymentResourceIdent

func DeploymentResourceIdent(id string) Ident

func DeploymentStatusIdent

func DeploymentStatusIdent(id string) Ident

func EnvIdent

func EnvIdent(envName string) Ident

func FindingIdent

func FindingIdent(id string) Ident

func GitHubRepository

func GitHubRepository(repoName string) Ident

func ImageIdent

func ImageIdent(name, version string) Ident

func ImageVulnerabilitySummaryIdent

func ImageVulnerabilitySummaryIdent(id string) Ident

func JobIdent

func JobIdent(jobName string) Ident

func KafkaTopicIdent

func KafkaTopicIdent(envName string, teamSlug slug.Slug, topicName string) Ident

func OpenSearchIdent

func OpenSearchIdent(envName string, teamSlug slug.Slug, instanceName string) Ident

func PodIdent

func PodIdent(id types.UID) Ident

func ReconcilerErrorIdent

func ReconcilerErrorIdent(id int) Ident

func RedisIdent

func RedisIdent(envName string, teamSlug slug.Slug, instanceName string) Ident

func SecretIdent

func SecretIdent(envName string, teamSlug slug.Slug, secretName string) Ident

func SqlDatabaseIdent

func SqlDatabaseIdent(envName string, teamSlug slug.Slug, databaseName string) Ident

func SqlInstanceIdent

func SqlInstanceIdent(envName string, teamSlug slug.Slug, instanceName string) Ident

func TeamIdent

func TeamIdent(teamSlug slug.Slug) Ident

func UserIdent

func UserIdent(userID uuid.UUID) Ident

func UsersyncRunIdent

func UsersyncRunIdent(id uuid.UUID) Ident

func VulnerabilitiesIdent

func VulnerabilitiesIdent(id string) Ident

func WorkloadIdent

func WorkloadIdent(id string) Ident

func (Ident) AsUUID

func (i Ident) AsUUID() (uuid.UUID, error)

func (Ident) MarshalGQLContext

func (i Ident) MarshalGQLContext(_ context.Context, w io.Writer) error

func (*Ident) UnmarshalGQLContext

func (i *Ident) UnmarshalGQLContext(_ context.Context, v interface{}) error

type IdentType

type IdentType string
const (
	IdentTypeAnalysisTrail        IdentType = "analysisTrail"
	IdentTypeApp                  IdentType = "app"
	IdentTypeAuditEvent           IdentType = "auditEvent"
	IdentTypeAuditLog             IdentType = "auditLog"
	IdentTypeBigQueryDataset      IdentType = "bigQueryDataset"
	IdentTypeBucket               IdentType = "bucket"
	IdentTypeCorrelationID        IdentType = "correlationID"
	IdentTypeDeployKey            IdentType = "deployKey"
	IdentTypeDeployment           IdentType = "deployment"
	IdentTypeDeploymentResource   IdentType = "deploymentResource"
	IdentTypeDeploymentStatus     IdentType = "deploymentStatus"
	IdentTypeEnv                  IdentType = "env"
	IdentTypeFinding              IdentType = "finding"
	IdentTypeGitHubRepo           IdentType = "githubRepo"
	IdentTypeImage                IdentType = "image"
	IdentTypeJob                  IdentType = "job"
	IdentTypeKafkaTopic           IdentType = "kafkaTopic"
	IdentTypeOpenSearch           IdentType = "openSearch"
	IdentTypePod                  IdentType = "pod"
	IdentTypeReconcilerError      IdentType = "reconcilerError"
	IdentTypeRedis                IdentType = "redis"
	IdentTypeSecret               IdentType = "secret"
	IdentTypeSqlDatabase          IdentType = "sqlDatabase"
	IdentTypeSqlInstance          IdentType = "sqlInstance"
	IdentTypeTeam                 IdentType = "team"
	IdentTypeUser                 IdentType = "user"
	IdentTypeUsersyncRun          IdentType = "usersyncRun"
	IdentTypeVulnerabilities      IdentType = "vulnerabilities"
	IdentTypeVulnerabilitySummary IdentType = "vulnerabilitySummary"
	IdentTypeWorkload             IdentType = "workload"
)

Jump to

Keyboard shortcuts

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