model

package
v0.0.0-...-2c51fd6 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type Component

type Component struct {
	ID          string                 `json:"id"`
	Name        string                 `json:"name"`
	Description *string                `json:"description,omitempty"`
	Type        string                 `json:"type"`
	Lifecycle   string                 `json:"lifecycle"`
	Owner       *Team                  `json:"owner"`
	Tier        string                 `json:"tier"`
	Links       []*Link                `json:"links,omitempty"`
	Tags        []string               `json:"tags,omitempty"`
	Annotations map[string]interface{} `json:"annotations,omitempty"`
	Components  *ComponentConnection   `json:"components"`
	CreatedAt   time.Time              `json:"createdAt"`
	UpdatedAt   time.Time              `json:"updatedAt"`
}

type ComponentConnection

type ComponentConnection struct {
	Total int          `json:"total"`
	Data  []*Component `json:"data,omitempty"`
}

type ComponentFilter

type ComponentFilter struct {
	Keywords  *string  `json:"keywords,omitempty"`
	Tier      *string  `json:"tier,omitempty"`
	Type      *string  `json:"type,omitempty"`
	Lifecycle *string  `json:"lifecycle,omitempty"`
	Owner     *string  `json:"owner,omitempty"`
	Tags      []string `json:"tags,omitempty"`
}
type Link struct {
	Title string `json:"title"`
	URL   string `json:"url"`
	Type  string `json:"type"`
}

type PageInput

type PageInput struct {
	Page int `json:"page"`
	Size int `json:"size"`
}

type Query

type Query struct {
}

type SortDirection

type SortDirection string
const (
	SortDirectionAsc  SortDirection = "ASC"
	SortDirectionDesc SortDirection = "DESC"
)

func (SortDirection) IsValid

func (e SortDirection) IsValid() bool

func (SortDirection) MarshalGQL

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

func (SortDirection) String

func (e SortDirection) String() string

func (*SortDirection) UnmarshalGQL

func (e *SortDirection) UnmarshalGQL(v interface{}) error

type SortInput

type SortInput struct {
	Field     string        `json:"field"`
	Direction SortDirection `json:"direction"`
}

type Team

type Team struct {
	ID      string          `json:"id"`
	Name    string          `json:"name"`
	Members *UserConnection `json:"members"`
}

type TeamConnection

type TeamConnection struct {
	Total int     `json:"total"`
	Data  []*Team `json:"data,omitempty"`
}

type User

type User struct {
	ID          string  `json:"id"`
	Name        string  `json:"name"`
	Description *string `json:"description,omitempty"`
	Avatar      *string `json:"avatar,omitempty"`
}

type UserConnection

type UserConnection struct {
	Total int     `json:"total"`
	Data  []*User `json:"data,omitempty"`
}

Jump to

Keyboard shortcuts

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