atom

package
v0.0.0-...-f266d1f Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Atom

type Atom interface {
	WithDatabase(*gorm.DB) Atom
	List(*ListRequest) (models.Atoms, error)
	Get(uuid.UUID) (*models.Atom, error)
	Create(*CreateRequest) (*models.Atom, error)
	Delete(uuid.UUID) error
}

func Service

func Service(ctx context.Context) Atom

type CreateRequest

type CreateRequest struct {
	Engine  string   `json:"engine"`
	Image   string   `json:"image"`
	Command []string `json:"command"`
}

func (*CreateRequest) CommandString

func (r *CreateRequest) CommandString() (string, error)

type ListRequest

type ListRequest struct {
	Limit   uint64
	Offset  uint64
	OrderBy []string
	Engine  string
}

Jump to

Keyboard shortcuts

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