model

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppInput

type AppInput struct {
	Name            string  `json:"name"`
	IsIstio         *bool   `json:"isIstio"`
	ImageTag        *string `json:"imageTag"`
	Paused          *bool   `json:"paused"`
	GithubRepo      *string `json:"githubRepo"`
	SlackChannel    *string `json:"slackChannel"`
	CloudSourceRepo *string `json:"cloudSourceRepo"`
}

type ClusterInfo

type ClusterInfo struct {
	Name              string `json:"name"`
	Region            string `json:"region"`
	ReviewAppsEnabled bool   `json:"reviewAppsEnabled"`
}

type CreateReviewAppInput

type CreateReviewAppInput struct {
	Name       string `json:"name"`
	BranchName string `json:"branchName"`
}

type ManualApplyInput

type ManualApplyInput struct {
	Name      string    `json:"name"`
	Resources []*string `json:"resources"`
}

type Resource

type Resource struct {
	Encoded string `json:"encoded"`
	Kind    string `json:"kind"`
	Name    string `json:"name"`
}

type ReviewAppsConfig

type ReviewAppsConfig struct {
	Enabled           bool        `json:"enabled"`
	Vars              []*Tuple    `json:"vars"`
	ExcludedResources []*Resource `json:"excludedResources"`
}

type SetRacEnabledInput added in v1.0.0

type SetRacEnabledInput struct {
	Name    string `json:"name"`
	Enabled bool   `json:"enabled"`
}

type SetResourceInput

type SetResourceInput struct {
	AppName string `json:"appName"`
	Name    string `json:"name"`
	Kind    string `json:"kind"`
}

type SetTupleInput

type SetTupleInput struct {
	Name  string `json:"name"`
	Key   string `json:"key"`
	Value string `json:"value"`
}

type State

type State struct {
	Current  []*Resource `json:"Current"`
	Previous []*Resource `json:"Previous"`
}

type TuberApp

type TuberApp struct {
	CloudSourceRepo   string            `json:"cloudSourceRepo"`
	CurrentTags       []string          `json:"currentTags"`
	GithubRepo        string            `json:"githubRepo"`
	ImageTag          string            `json:"imageTag"`
	Name              string            `json:"name"`
	Paused            bool              `json:"paused"`
	ReviewApp         bool              `json:"reviewApp"`
	ReviewAppsConfig  *ReviewAppsConfig `json:"reviewAppsConfig"`
	SlackChannel      string            `json:"slackChannel"`
	SourceAppName     string            `json:"sourceAppName"`
	State             *State            `json:"state"`
	TriggerID         string            `json:"triggerID"`
	Vars              []*Tuple          `json:"vars"`
	ReviewApps        []*TuberApp       `json:"reviewApps"`
	Env               []*Tuple          `json:"env"`
	ExcludedResources []*Resource       `json:"excludedResources"`
}

func (TuberApp) DBIndexes

func (t TuberApp) DBIndexes() (map[string]string, map[string]bool, map[string]int)

func (TuberApp) DBKey

func (t TuberApp) DBKey() string

func (TuberApp) DBMarshal

func (t TuberApp) DBMarshal() ([]byte, error)

func (TuberApp) DBRoot

func (t TuberApp) DBRoot() string

func (TuberApp) DBUnmarshal

func (t TuberApp) DBUnmarshal(data []byte) (db.Model, error)

type Tuple

type Tuple struct {
	Key   string `json:"key"`
	Value string `json:"value"`
}

Jump to

Keyboard shortcuts

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