model

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2025 License: GPL-3.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 BuildParams

type BuildParams struct {
	RepoName   string             `json:"repo_name"` // "gocode"
	TemplateID string             `json:"template_id"`
	Tag        string             `json:"tag"`        // "latest"
	BuildArgs  map[string]*string `json:"build_args"` // ["ENV=prod"]
}

type Container

type Container struct {
	ID            string   `json:"id"`
	DockerID      string   `json:"docker_id"`
	ImageName     string   `json:"image_name"`
	Status        string   `json:"status"` // "running"
	State         string   `json:"state"`  // "Up 4 hours"
	ContainerName string   `json:"container_name"`
	GitRepo       string   `json:"git_repo"`
	UserID        string   `json:"user_id"`
	EnvVars       []string `json:"env_vars"` // ["ENV=prod"]
	Ports         []string `json:"ports"`    // ["8080:8098/tcp"]
	UIPort        string   `json:"ui_port"`  // "32102"
}

type ContainerStatus

type ContainerStatus struct {
	DockerID string `json:"docker_id"`
	Status   string `json:"status"` // "running"
	State    string `json:"state"`  // "Up 4 hours"
}

type Image

type Image struct {
	RepoName string `json:"repo_name"` // "gocode"
	ImageID  string `json:"image_id"`  // "sha256:abc123"
	Tag      string `json:"tag"`       // "latest"
}

type LoginRequest

type LoginRequest struct {
	Username string `json:"username"`
	Password string `json:"password"`
}

type LoginResponse

type LoginResponse struct {
	Username string `json:"username"`
	UserID   string `json:"user_id"`
	Token    string `json:"token"`
}

type Template

type Template struct {
	ID         string `json:"id"`
	Name       string `json:"name"`
	RepoName   string `json:"repo_name"`
	Dockerfile string `json:"dockerfile"`
}

type Token

type Token struct {
	UserID string `json:"user_id"`
	Token  string `json:"token"`
}

type User

type User struct {
	ID       string   `json:"id"`
	Username string   `json:"username"`
	Password string   `json:"password,omitempty"`
	Tokens   []string `json:"tokens"`
}

Jump to

Keyboard shortcuts

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