xinstance

package
v0.0.0-...-8c2001a Latest Latest
Warning

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

Go to latest
Published: Feb 17, 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 Builder

type Builder func(App xtypes.App) (Instancer, error)

type Handle

type Handle interface {
	GetFile(file string) ([]byte, error)
	LoadFile(file string, target any) error // loads json/yaml
	GetPrevObject(name string) *Response
}

type Instancer

type Instancer interface {
	Instance(opts Options) (*Response, error)
}

type Options

type Options struct {
	TenantId     string
	BprintId     string
	InstanceType string
	File         string
	UserId       string
	UserData     []byte
	Automatic    bool
	Handle       Handle
}

type Response

type Response struct {
	Ok             bool   `json:"ok,omitempty"`
	Type           string `json:"type,omitempty"`
	Message        string `json:"message,omitempty"`
	Slug           string `json:"slug,omitempty"`
	Data           any    `json:"data,omitempty"`
	ResourceTarget string `json:"resource_target,omitempty"`
}

Jump to

Keyboard shortcuts

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