api

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2021 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Deployment

type Deployment struct {
	Name          string `json:"name"`
	Namespace     string `json:"namespace"`
	Pods          []*Pod `json:"pods,omitempty"`
	SHA           string `json:"sha"`
	CommitMessage string `json:"commitMessage"`
}

func (*Deployment) FQN

func (d *Deployment) FQN() string

type Env

type Env struct {
	Name   string   `json:"name"`
	Stacks []*Stack `json:"stacks"`
}

type Ingress

type Ingress struct {
	Name      string `json:"name"`
	Namespace string `json:"namespace"`
	URL       string `json:"url"`
}

type Pod

type Pod struct {
	Name              string `json:"name"`
	Namespace         string `json:"namespace"`
	Status            string `json:"status"`
	StatusDescription string `json:"statusDescription"`
	Logs              string `json:"logs"`
}

func (*Pod) FQN

func (p *Pod) FQN() string

type Service

type Service struct {
	Name      string `json:"name"`
	Namespace string `json:"namespace"`
}

type Stack

type Stack struct {
	Repo       string      `json:"repo"`
	Env        string      `json:"env"`
	Service    *Service    `json:"service"`
	Deployment *Deployment `json:"deployment,omitempty"`
	Ingresses  []*Ingress  `json:"ingresses,omitempty"`
}

type StackUpdate

type StackUpdate struct {
	Event   string `json:"event"`
	Repo    string `json:"repo"`
	Env     string `json:"env"`
	Subject string `json:"subject"`
	Svc     string `json:"svc"`

	// Pod
	Status     string `json:"status"`
	Deployment string `json:"deployment"`
	ErrorCause string `json:"errorCause"`
	Logs       string `json:"logs"`

	// Deployment
	SHA           string `json:"sha"`
	CommitMessage string `json:"commitMessage"` // only used in streamed update to frontend

	// Ingress
	URL string `json:"url"`

	// Service
	Stacks []*Stack `json:"stacks"`
}

type Tag

type Tag struct {
	SHA  string `json:"sha"`
	Name string `json:"name"`
}

Jump to

Keyboard shortcuts

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