schema

package
v0.0.0-...-e83cbdc Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2020 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BuildInfo

type BuildInfo struct {
	GitVersion   *Version   `json:"gitVersion"`
	GitCommit    *string    `json:"gitCommit"`
	GitTreeState *string    `json:"gitTreeState"`
	BuiltAt      *time.Time `json:"builtAt"`
	GoVersion    string     `json:"goVersion"`
	Compiler     string     `json:"compiler"`
	Platform     string     `json:"platform"`
}

BuildInfo represents build information about a component.

type Job

type Job struct {
	ID       string
	Name     string
	Image    string
	Command  []string
	Status   string
	ExitCode *int32
	Output   string
}

type JobConnection

type JobConnection struct {
	Edges []JobEdge
}

type JobEdge

type JobEdge struct {
	Node Job
}

type JobSpec

type JobSpec struct {
	Name     string              `json:"name"`
	Image    string              `json:"image"`
	Command  []string            `json:"command"`
	Requires []string            `json:"requires"`
	Volumes  []VolumeRequirement `json:"volumes,omitempty"`
}

JobSpec is an input so it requires json struct tags to have correct capitalization when used with github.com/shurcooL/graphql

type User

type User struct {
	ID    string
	Login string
}

type Version

type Version struct {
	Major         int32   `json:"major"`
	Minor         int32   `json:"minor"`
	Patch         int32   `json:"patch"`
	PreRelease    *string `json:"preRelease"`
	BuildMetadata *string `json:"buildMetadata"`
}

Version represents semantic version information.

type Viewer

type Viewer struct {
	Workflows WorkflowConnection
}

type VolumeRequirement

type VolumeRequirement struct {
	Name     string `json:"name"`
	Location string `json:"location"`
}

type VolumeSpec

type VolumeSpec struct {
	Name string `json:"name"`
	Type string `json:"type"`
}

type Workflow

type Workflow struct {
	ID         string
	Name       string
	CreatedBy  User
	CreatedAt  string
	StartedAt  string
	FinishedAt string
	Status     string
	Jobs       JobConnection
}

type WorkflowConnection

type WorkflowConnection struct {
	Edges []WorkflowEdge
}

type WorkflowEdge

type WorkflowEdge struct {
	Node Workflow
}

type WorkflowSpec

type WorkflowSpec struct {
	Name    string       `json:"name"`
	Jobs    []JobSpec    `json:"jobs"`
	Volumes []VolumeSpec `json:"volumes"`
}

WorkflowSpec is an input so it requires json struct tags to have correct capitalization when used with github.com/shurcooL/graphql

Jump to

Keyboard shortcuts

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