scalar

package
v0.0.0-...-be2aeb8 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

This section is empty.

Types

type Cursor

type Cursor struct {
	Offset int `json:"offset"`
}

func (Cursor) MarshalGQLContext

func (c Cursor) MarshalGQLContext(_ context.Context, w io.Writer) error

func (*Cursor) UnmarshalGQLContext

func (c *Cursor) UnmarshalGQLContext(_ context.Context, v interface{}) error

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 AppIdent

func AppIdent(id string) Ident

func DeployKeyIdent

func DeployKeyIdent(id string) 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(id string) Ident

func JobIdent

func JobIdent(id string) Ident

func PodIdent

func PodIdent(id types.UID) Ident

func TeamIdent

func TeamIdent(id string) Ident

func UserIdent

func UserIdent(id string) Ident

func VulnerabilitiesIdent

func VulnerabilitiesIdent(id string) Ident

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 (
	IdentTypeApp                IdentType = "app"
	IdentTypeDeployKey          IdentType = "deployKey"
	IdentTypeDeployment         IdentType = "deployment"
	IdentTypeDeploymentResource IdentType = "deploymentResource"
	IdentTypeDeploymentStatus   IdentType = "deploymentStatus"
	IdentTypeEnv                IdentType = "env"
	IdentTypeJob                IdentType = "job"
	IdentTypePod                IdentType = "pod"
	IdentTypeTeam               IdentType = "team"
	IdentTypeUser               IdentType = "user"
	IdentTypeVulnerabilities    IdentType = "vulnerabilities"
)

Jump to

Keyboard shortcuts

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