models

package
v0.0.0-...-69c2794 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	QueryOrganization string = "organization"
	QueryRepository   string = "repository"
	QueryPull         string = "pull"
	QueryPod          string = "pod"
)
View Source
const (
	ParamOrganization   string = "organization"
	ParamRepository     string = "repository"
	ParamPod            string = "pod"
	ParamDeploymentName string = "deploymentName"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	Name    string `json:"name"`
	Status  string `json:"status"`
	Version string `json:"version"`
	Image   string `json:"image"`
	Age     string `json:"age"`
}

type Apps

type Apps struct {
	AppName        string `json:"appName"`
	DeploymentName string `json:"deploymentName"`
	Status         string `json:"status"`
	Version        string `json:"version"`
	Age            string `json:"age"`
}

type Branches

type Branches struct {
	DeploymentName string `json:"deploymentName"`
	Branch         string `json:"branch"`
	PullRequestID  string `json:"pullRequestID"`
	Status         string `json:"status"`
	Version        string `json:"version"`
	Age            string `json:"age"`
}

type ConfigMap

type ConfigMap struct {
	Name  string `json:"name" conf:"key"`
	Value string `json:"value" conf:"value"`
}

func SetConfigMap

func SetConfigMap(key, value string) ConfigMap

type GetRepoBranchesRequest

type GetRepoBranchesRequest struct {
	Organization string `json:"organization"`
	Repository   string `json:"repository"`
}

type GetRepoBranchesResponse

type GetRepoBranchesResponse struct {
	Branches []Branches `json:"branches"`
}

type GetRepositoryAppsRequest

type GetRepositoryAppsRequest struct {
	Organization string `json:"organization"`
}

type GetRepositoryAppsResponse

type GetRepositoryAppsResponse struct {
	Repositories []Repositories `json:"repositories"`
	Apps         []Apps         `json:"apps"`
}

type HomeResponse

type HomeResponse struct {
	OrganizationInfos []OrganizationInfos `json:"organizationInfos"`
}

type Organization

type Organization struct {
	Name  string  `json:"name"`
	Repos []*Repo `json:"repos"`
	Apps  []*App  `json:"apps"`
}

type OrganizationInfos

type OrganizationInfos struct {
	Organization string   `json:"organization"`
	Repositories []string `json:"repositories"`
}

type PodLogRequest

type PodLogRequest struct {
	Organization string `json:"organization"`
	Pod          string `json:"pod"`
}

type PullRequestConfig

type PullRequestConfig struct {
	BuildFilePath string      `json:"build_file_path" conf:"BUILD_FILE_PATH"`
	BuildFileDir  string      `json:"build_file_dir" conf:"BUILD_FILE_DIR"`
	Replicas      int32       `json:"replicas" conf:"REPLICAS"`
	ExposePort    []int32     `json:"expose_port" conf:"EXPOSE_PORT"`
	ConfigMaps    []ConfigMap `json:"config_map" conf:"[config-map]"`
}

type Repo

type Repo struct {
	Name          string `json:"name"`
	PullRequestID string `json:"pullRequestID"`
	Branch        string `json:"branch"`
}

type Repositories

type Repositories struct {
	Repository string `json:"repository"`
	Deployment int32  `json:"deployment"`
}

type Usage

type Usage struct {
	PodName string `json:"podName"`
	CPU     int64  `json:"cpu"`
	MEM     int64  `json:"memory"`
	Storage int64  `json:"storage"`
}

type UsageRequest

type UsageRequest struct {
	Organization   string `json:"organization"`
	DeploymentName string `json:"deploymentName"`
}

type UsageResponse

type UsageResponse struct {
	Organization   string  `json:"organization"`
	DeploymentName string  `json:"deploymentName"`
	Usages         []Usage `json:"usages"`
	IsDisable      bool    `json:"isDisable"`
}

Jump to

Keyboard shortcuts

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