entity

package
v0.0.0-...-50c425e Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2025 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 Service

type Service struct {

	// pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$
	ID string `storm:"id" json:"id"`

	// pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$
	StackID string `storm:"index" json:"stack_id"`

	// Service name.
	//
	// required: true
	// min length: 3
	// pattern: ^[a-z0-9]+(?:-[a-z0-9]+)*$
	Name string `json:"name" storm:"index"`

	CreatedAt std.DateTime `json:"created_at"`

	UpdatedAt std.DateTime `json:"updated_at,omitempty"`

	Hosts []string `json:"hosts"`
}

Service represents a Service.

swagger:model Service

type Stack

type Stack struct {
	// Stack name.
	//
	// required: true
	// min length: 3
	// pattern: ^[a-z0-9]+(?:-[a-z0-9]+)*$
	Name string `json:"Name" storm:"id"`

	Services int `json:"Services"`
}

Stack represents a Stack.

swagger:model Stack

type StackCompose

type StackCompose struct {

	// pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$
	ID string `storm:"id" json:"id"`

	// pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$
	StackID string `storm:"index" json:"stack_id"`

	ComposeFile string `json:"-"`

	Version int `storm:"index" json:"version"`

	CreatedAt std.DateTime `json:"created_at"`

	UpdatedAt std.DateTime `json:"updated_at,omitempty"`
}

StackCompose represents a Stack Compose.

swagger:model StackCompose

Jump to

Keyboard shortcuts

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