model

package
v0.0.0-...-7426b64 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ISO8601LocalTime = "2006-01-02T15:04:05"
	DateFormat       = "2006-01-02"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Branch

type Branch struct {
	BranchID     strfmt.UUID  `json:"branch_id"`
	CommitID     *strfmt.UUID `json:"commit_id"`
	Main         *bool        `json:"main"`
	ProjectID    *strfmt.UUID `json:"project_id"`
	TrackingType *string      `json:"tracking_type"` // graphql type: tracking_type
	Tracks       *strfmt.UUID `json:"tracks"`
	Label        string       `json:"label"`
}

func (*Branch) ToMonoBranch

func (b *Branch) ToMonoBranch() *mono_models.Branch

type Branches

type Branches []*Branch

func (Branches) ToMonoBranches

func (bs Branches) ToMonoBranches() mono_models.Branches

type Checkpoint

type Checkpoint struct {
	Requirements []*Requirement `json:"vcs_checkpoints"`
	Commit       *Commit        `json:"vcs_commits_by_pk"`
}

type Commit

type Commit struct {
	AtTime strfmt.DateTime `json:"at_time"`
}

type Date

type Date struct {
	time.Time
}

func (*Date) MarshalJSON

func (t *Date) MarshalJSON() ([]byte, error)

func (*Date) UnmarshalJSON

func (t *Date) UnmarshalJSON(data []byte) error

type ErrorResponse

type ErrorResponse struct {
	Error   string `json:"error,omitempty"`
	Message string `json:"message,omitempty"`
}

type ForkedProject

type ForkedProject struct {
	Name         string       `json:"name"`
	Organization Organization `json:"organization"`
}

type Organization

type Organization struct {
	ID          strfmt.UUID `json:"organization_id"`
	DisplayName string      `json:"display_name"`
	URLName     string      `json:"url_name"`
}

type Organizations

type Organizations struct {
	Organizations []Organization `json:"organizations"`
}

type Project

type Project struct {
	Branches       Branches       `json:"branches"`
	Description    *string        `json:"description"`
	Name           string         `json:"name"`
	Added          Time           `json:"added"`
	CreatedBy      *strfmt.UUID   `json:"created_by"`
	ForkedFrom     *strfmt.UUID   `json:"forked_from"`
	ForkedProject  *ForkedProject `json:"forked_project"`
	Changed        Time           `json:"changed"`
	Managed        bool           `json:"managed"`
	OrganizationID strfmt.UUID    `json:"organization_id"`
	Private        bool           `json:"private"`
	ProjectID      strfmt.UUID    `json:"project_id"`
	RepoURL        *string        `json:"repo_url"`
}

func (*Project) ToMonoProject

func (p *Project) ToMonoProject() (*mono_models.Project, error)

type Projects

type Projects struct {
	Projects []*Project `json:"projects"`
}

type PublishResult

type PublishResult struct {
	Publish struct {
		ErrorResponse
		IngredientID        string `json:"ingredientID"`
		IngredientVersionID string `json:"ingredientVersionID"`
		Revision            int    `json:"revision"`
	} `json:"publish"`
}

type Requirement

type Requirement struct {
	mono_models.Checkpoint
	VersionConstraints mono_models.Constraints `json:"constraint_json,omitempty"`
	CommitID           strfmt.UUID             `json:"commit_id"`
}

type RuntimeUsage

type RuntimeUsage struct {
	// ActiveDynamicRuntimes is the total number of dynamic runtimes in use
	ActiveDynamicRuntimes float64 `json:"active_runtimes"`

	// LimitDynamicRuntimes is the total number of dynamic runtimes that can be used
	LimitDynamicRuntimes float64 `json:"limit_runtimes"`
}

type RuntimeUsageResponse

type RuntimeUsageResponse struct {
	Usage []RuntimeUsage `json:"organizations_runtime_usage"`
}

type Time

type Time struct {
	time.Time
}

func (*Time) MarshalJSON

func (t *Time) MarshalJSON() ([]byte, error)

func (*Time) UnmarshalJSON

func (t *Time) UnmarshalJSON(data []byte) error

Jump to

Keyboard shortcuts

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