entity

package
v0.1.35 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2021 License: MIT Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CobraFunction

type CobraFunction func(cmd *cobra.Command, args []string) error

type CommandRequest

type CommandRequest struct {
	Cmd  *cobra.Command
	Args []string
}

type CreatePluginRequest

type CreatePluginRequest struct {
	ProjectID string
	Plugin    string
}

type CreateProjectFromTemplateRequest added in v0.1.35

type CreateProjectFromTemplateRequest struct {
	Name      string            // Required
	Owner     string            // Required
	Template  string            // Required
	IsPrivate bool              // Optional
	Plugins   []string          // Optional
	Variables map[string]string // Optional
}

type CreateProjectFromTemplateResult added in v0.1.35

type CreateProjectFromTemplateResult struct {
	WorkflowID string
	ProjectID  string
}

type CreateProjectRequest

type CreateProjectRequest struct {
	Name        *string  // Optional
	Description *string  // Optional
	Plugins     []string // Optional
}

type Environment

type Environment struct {
	Id   string `json:"id,omitempty"`
	Name string `json:"name,omitempty"`
}

type Envs

type Envs map[string]string

type GetEnvsRequest

type GetEnvsRequest struct {
	ProjectID     string
	EnvironmentID string
}

type HandlerFunction

type HandlerFunction func(context.Context, *CommandRequest) error

type PanicFunction

type PanicFunction func(context.Context, string, string, string, []string) error

type PanicRequest

type PanicRequest struct {
	Command       string
	PanicError    string
	Stacktrace    string
	ProjectID     string
	EnvironmentID string
}

type Plugin

type Plugin struct {
	Id   string `json:"id,omitempty"`
	Name string `json:"name,omitempty"`
}

type PluginList

type PluginList struct {
	Plugins []*Plugin `json:"plugins,omitempty"`
}

type Project

type Project struct {
	Id           string         `json:"id,omitempty"`
	Name         string         `json:"name,omitempty"`
	Environments []*Environment `json:"environments,omitempty"`
	Plugins      []*Plugin      `json:"plugins,omitempty"`
}

type ProjectConfig

type ProjectConfig struct {
	ProjectPath     string          `json:"projectPath,omitempty"`
	Project         string          `json:"project,omitempty"`
	Environment     string          `json:"environment,omitempty"`
	LockedEnvsNames map[string]bool `json:"lockedEnvsNames,omitempty"`
}

type RootConfig

type RootConfig struct {
	User     UserConfig               `json:"user"`
	Projects map[string]ProjectConfig `json:"projects"`
}

type Template added in v0.1.35

type Template struct {
	Text    string           `json:"text"`
	Href    string           `json:"href"`
	Plugins []string         `json:"plugins"`
	Desc    string           `json:"desc"`
	Tags    []string         `json:"tags"`
	Icon    string           `json:"icon"`
	Value   string           `json:"value"`
	EnvVars []TemplateEnvVar `json:"envVars"`
}

type TemplateEnvVar added in v0.1.35

type TemplateEnvVar struct {
	Name         string `json:"name"`
	Desc         string `json:"desc"`
	DefaultValue string `json:"defaultValue"`
	Optional     bool   `json:"optional"`
}

type UpRequest

type UpRequest struct {
	Data          bytes.Buffer
	ProjectID     string
	EnvironmentID string
}

type UpResponse

type UpResponse struct {
	URL string
}

type UpdateProjectRequest

type UpdateProjectRequest struct {
	Id          string  // Required
	Name        *string // Optional
	Description *string // Optional
}

type User

type User struct {
	Id       string    `json:"id,omitempty"`
	Name     string    `json:"name,omitempty"`
	Email    string    `json:"email,omitempty"`
	Avatar   string    `json:"avatar,omitempty"`
	Projects []Project `json:"projects,omitempty"`
}

type UserConfig

type UserConfig struct {
	Token string `json:"token"`
}

type WorkflowStatus added in v0.1.35

type WorkflowStatus string
var (
	WorkflowRunning  WorkflowStatus = "Running"
	WorkflowComplete WorkflowStatus = "Complete"
	WorkflowError    WorkflowStatus = "Error"
)

func (WorkflowStatus) IsComplete added in v0.1.35

func (s WorkflowStatus) IsComplete() bool

func (WorkflowStatus) IsError added in v0.1.35

func (s WorkflowStatus) IsError() bool

func (WorkflowStatus) IsRunning added in v0.1.35

func (s WorkflowStatus) IsRunning() bool

type WorkflowStatusResponse added in v0.1.35

type WorkflowStatusResponse struct {
	Status WorkflowStatus `json:"status"`
}

Jump to

Keyboard shortcuts

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