environment

package
v0.0.0-...-0b46401 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2025 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SortFilter = sortfilter.New[*Environment, EnvironmentOrderField, struct{}]()

Functions

func NewLoaderContext

func NewLoaderContext(ctx context.Context, dbConn *pgxpool.Pool) context.Context

func SyncEnvironments

func SyncEnvironments(ctx context.Context, envs []*Environment) error

Types

type Environment

type Environment struct {
	Name string `json:"name"`
	GCP  bool   `json:"-"`
}

func Get

func Get(ctx context.Context, name string) (*Environment, error)

func GetByIdent

func GetByIdent(ctx context.Context, id ident.Ident) (*Environment, error)

func List

func List(ctx context.Context, orderBy *EnvironmentOrder) ([]*Environment, error)

func (Environment) ID

func (e Environment) ID() ident.Ident

func (Environment) IsNode

func (Environment) IsNode()

type EnvironmentConnection

type EnvironmentConnection = pagination.Connection[*Environment]

type EnvironmentEdge

type EnvironmentEdge = pagination.Edge[*Environment]

type EnvironmentOrder

type EnvironmentOrder struct {
	Field     EnvironmentOrderField `json:"field"`
	Direction model.OrderDirection  `json:"direction"`
}

type EnvironmentOrderField

type EnvironmentOrderField string

func (EnvironmentOrderField) IsValid

func (e EnvironmentOrderField) IsValid() bool

func (EnvironmentOrderField) MarshalGQL

func (e EnvironmentOrderField) MarshalGQL(w io.Writer)

func (EnvironmentOrderField) String

func (e EnvironmentOrderField) String() string

func (*EnvironmentOrderField) UnmarshalGQL

func (e *EnvironmentOrderField) UnmarshalGQL(v any) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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