model

package
v0.0.0-...-e800d3e Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ComposeLibraryItem

type ComposeLibraryItem struct {
	Id           uint
	CredentialId *uint
	Credential   *Credential
	ProjectName  string `gorm:"size:50"`
	Type         string `gorm:"size:20,default:''"` // github (filesystem projects are not stored in this table so this type is not allowed here)
	Url          string `gorm:"size:255"`
}

Remote: This is a DB model

type Credential

type Credential struct {
	Id       uint
	Name     string  `gorm:"unique;size:50"`
	Service  *string `gorm:"size:50"`  // github
	Type     string  `gorm:"size:50"`  // pat = Personal Access Token
	UserName *string `gorm:"size:100"` // Username or any other identifier for the service
	Secret   string  // Token, password, etc.
}

type Environment

type Environment struct {
	Id   uint
	Name string `gorm:"unique;size:50"`
}

type FileSystemComposeLibraryItem

type FileSystemComposeLibraryItem struct {
	ProjectName string
	Definition  string
}

type FileSystemComposeLibraryItemHead

type FileSystemComposeLibraryItemHead struct {
	ProjectName string
}

FileSystem: This is not a DB model

type FileSystemComposeLibraryItemUpdate

type FileSystemComposeLibraryItemUpdate struct {
	ProjectName    string
	NewProjectName string
	Definition     string
}

type Node

type Node struct {
	Id               uint
	EnvironmentId    *uint
	Environment      *Environment
	Name             string  `gorm:"unique;size:50"`
	AgentVersion     string  `gorm:"size:20"`
	TokenHash        *string `gorm:"unique;size:100"`
	LastPing         *time.Time
	ContainerBaseUrl *string `gorm:"size:255"`
}

type NodeComposeProject

type NodeComposeProject struct {
	Id                 uint
	NodeId             uint
	Node               Node
	EnvironmentId      *uint
	Environment        *Environment
	LibraryProjectId   *uint
	LibraryProject     *ComposeLibraryItem
	LibraryProjectName *string `gorm:"size:50"`
	ProjectName        string  `gorm:"size:50"`
	Type               string  `gorm:"size:20,default:''"` // github, local
	Url                *string `gorm:"size:255"`
	CredentialId       *uint
	Credential         *Credential
	Definition         *string // nil for github projects
}

type NodeComposeProjectVariable

type NodeComposeProjectVariable struct {
	Id                   uint
	NodeComposeProjectId uint
	NodeComposeProject   NodeComposeProject
	Name                 string `gorm:"size:100"`
	IsSecret             bool
	Value                string
}

type Setting

type Setting struct {
	Id    string `gorm:"size:100"`
	Value string
}

type User

type User struct {
	Id           uint
	UserName     string `gorm:"unique;size:255"`
	PasswordHash string `gorm:"size:255"`
}

type Variable

type Variable struct {
	Id       uint
	Name     string `gorm:"unique;size:100"`
	IsSecret bool
}

type VariableValue

type VariableValue struct {
	Id            uint
	VariableId    uint
	Variable      Variable
	EnvironmentId uint
	Environment   Environment
	Value         string
}

Jump to

Keyboard shortcuts

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