kantokuhttp

package
v0.0.0-...-75be81d Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TaskToDto

func TaskToDto(t core.Task) oas.Task

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(clientInterface oas.ClientWithResponsesInterface) *Client

func (*Client) Events

func (client *Client) Events() core.Broker

func (*Client) Resources

func (client *Client) Resources() core.ResourceDB

func (*Client) Spawn

func (client *Client) Spawn(ctx context.Context, t core.Task) (core.Task, error)

func (*Client) Specifications

func (client *Client) Specifications() *SpecificationStorage

func (*Client) Task

func (client *Client) Task(ctx context.Context, id string) (core.Task, error)

func (*Client) Tasks

func (client *Client) Tasks() core.TaskDB

func (*Client) Types

func (client *Client) Types() *SpecificationStorage

type Server

type Server struct {
	// contains filtered or unexported fields
}

func NewServer

func NewServer(system core.AbstractSystem, specifications *specification.Manager) *Server

func (*Server) PostResourcesLoad

func (*Server) PostTasksLoad

func (*Server) PostTasksRestart

func (*Server) PostTasksSpawn

type SpecificationStorage

type SpecificationStorage struct {
	// contains filtered or unexported fields
}

func (*SpecificationStorage) Add

func (*SpecificationStorage) Get

func (*SpecificationStorage) GetAll

func (*SpecificationStorage) Remove

func (storage *SpecificationStorage) Remove(ctx context.Context, id string) error

type TypeStorage

type TypeStorage struct {
	// contains filtered or unexported fields
}

func (*TypeStorage) Add

func (storage *TypeStorage) Add(ctx context.Context, typ specification.TypeWithID) error

func (*TypeStorage) Get

func (storage *TypeStorage) Get(ctx context.Context, id string) (specification.TypeWithID, error)

func (*TypeStorage) GetAll

func (storage *TypeStorage) GetAll(ctx context.Context) ([]specification.TypeWithID, error)

func (*TypeStorage) Remove

func (storage *TypeStorage) Remove(ctx context.Context, id string) error

Directories

Path Synopsis
Package oas provides primitives to interact with the openapi HTTP API.
Package oas provides primitives to interact with the openapi HTTP API.

Jump to

Keyboard shortcuts

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