tfgrid

package
v0.0.0-...-0269a1e Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TFGridID = "tfgrid"
)

Variables

This section is empty.

Functions

func State

func State(conState jsonrpc.State) *tfgridState

State from a connection. If no state is present, it is initialized

Types

type Client

type Client struct{}

Client exposing tfgrid methods

func NewClient

func NewClient() *Client

NewClient creates a new Client ready for use

func (*Client) AddK8sWorker

func (c *Client) AddK8sWorker(ctx context.Context, conState jsonrpc.State, workerInfo tfgridBase.AddWorkerParams) (tfgridBase.K8sCluster, error)

func (*Client) DeleteDiscourse

func (c *Client) DeleteDiscourse(ctx context.Context, conState jsonrpc.State, discourseName string) error

func (*Client) DeleteFunkwhale

func (c *Client) DeleteFunkwhale(ctx context.Context, conState jsonrpc.State, funkwhaleName string) error

func (*Client) DeletePeertube

func (c *Client) DeletePeertube(ctx context.Context, conState jsonrpc.State, peertubeName string) error

func (*Client) DeletePresearch

func (c *Client) DeletePresearch(ctx context.Context, conState jsonrpc.State, presearchName string) error

func (*Client) DeleteTaiga

func (c *Client) DeleteTaiga(ctx context.Context, conState jsonrpc.State, taigaName string) error

func (*Client) DeleteVM

func (c *Client) DeleteVM(ctx context.Context, conState jsonrpc.State, networkName string) error

func (*Client) DeployDiscourse

func (c *Client) DeployDiscourse(ctx context.Context, conState jsonrpc.State, discourse tfgridBase.Discourse) (tfgridBase.DiscourseResult, error)

func (*Client) DeployFunkwhale

func (c *Client) DeployFunkwhale(ctx context.Context, conState jsonrpc.State, funkwhale tfgridBase.Funkwhale) (tfgridBase.FunkwhaleResult, error)

func (*Client) DeployPeertube

func (c *Client) DeployPeertube(ctx context.Context, conState jsonrpc.State, peertube tfgridBase.Peertube) (tfgridBase.PeertubeResult, error)

func (*Client) DeployPresearch

func (c *Client) DeployPresearch(ctx context.Context, conState jsonrpc.State, presearch tfgridBase.Presearch) (tfgridBase.PresearchResult, error)

func (*Client) DeployTaiga

func (c *Client) DeployTaiga(ctx context.Context, conState jsonrpc.State, taiga tfgridBase.Taiga) (tfgridBase.TaigaResult, error)

func (*Client) DeployVM

func (c *Client) DeployVM(ctx context.Context, conState jsonrpc.State, vm tfgridBase.VM) (tfgridBase.VMResult, error)

func (*Client) FilterNodes

func (c *Client) FilterNodes(ctx context.Context, conState jsonrpc.State, filters tfgridBase.FilterOptions) ([]uint32, error)

func (*Client) GatewayFQDNDelete

func (c *Client) GatewayFQDNDelete(ctx context.Context, conState jsonrpc.State, modelName string) error

func (*Client) GatewayFQDNDeploy

func (c *Client) GatewayFQDNDeploy(ctx context.Context, conState jsonrpc.State, model tfgridBase.GatewayFQDNModel) (tfgridBase.GatewayFQDNModel, error)

func (*Client) GatewayFQDNGet

func (c *Client) GatewayFQDNGet(ctx context.Context, conState jsonrpc.State, modelName string) (tfgridBase.GatewayFQDNModel, error)

func (*Client) GatewayNameDelete

func (c *Client) GatewayNameDelete(ctx context.Context, conState jsonrpc.State, modelName string) error

func (*Client) GatewayNameDeploy

func (c *Client) GatewayNameDeploy(ctx context.Context, conState jsonrpc.State, model tfgridBase.GatewayNameModel) (tfgridBase.GatewayNameModel, error)

func (*Client) GatewayNameGet

func (c *Client) GatewayNameGet(ctx context.Context, conState jsonrpc.State, modelName string) (tfgridBase.GatewayNameModel, error)

func (*Client) GetDiscourse

func (c *Client) GetDiscourse(ctx context.Context, conState jsonrpc.State, discourseName string) (tfgridBase.DiscourseResult, error)

func (*Client) GetFunkwhale

func (c *Client) GetFunkwhale(ctx context.Context, conState jsonrpc.State, funkwhaleName string) (tfgridBase.FunkwhaleResult, error)

func (*Client) GetPeertube

func (c *Client) GetPeertube(ctx context.Context, conState jsonrpc.State, peertubeName string) (tfgridBase.PeertubeResult, error)

func (*Client) GetPresearch

func (c *Client) GetPresearch(ctx context.Context, conState jsonrpc.State, presearchName string) (tfgridBase.PresearchResult, error)

func (*Client) GetTaiga

func (c *Client) GetTaiga(ctx context.Context, conState jsonrpc.State, taigaName string) (tfgridBase.TaigaResult, error)

func (*Client) GetVM

func (c *Client) GetVM(ctx context.Context, conState jsonrpc.State, networkName string) (tfgridBase.VMResult, error)

func (*Client) K8sDelete

func (c *Client) K8sDelete(ctx context.Context, conState jsonrpc.State, modelName string) error

func (*Client) K8sDeploy

func (c *Client) K8sDeploy(ctx context.Context, conState jsonrpc.State, model tfgridBase.K8sCluster) (tfgridBase.K8sCluster, error)

func (*Client) K8sGet

func (c *Client) K8sGet(ctx context.Context, conState jsonrpc.State, k8sGetInfo tfgridBase.GetClusterParams) (tfgridBase.K8sCluster, error)

func (*Client) Load

func (c *Client) Load(ctx context.Context, conState jsonrpc.State, args Load) error

Load an identity for the tfgrid with the given network

func (*Client) MachinesAdd

func (c *Client) MachinesAdd(ctx context.Context, conState jsonrpc.State, machine tfgridBase.AddMachineParams) (tfgridBase.MachinesModel, error)

func (*Client) MachinesDelete

func (c *Client) MachinesDelete(ctx context.Context, conState jsonrpc.State, modelName string) error

func (*Client) MachinesDeploy

func (c *Client) MachinesDeploy(ctx context.Context, conState jsonrpc.State, model tfgridBase.MachinesModel) (tfgridBase.MachinesModel, error)

func (*Client) MachinesGet

func (c *Client) MachinesGet(ctx context.Context, conState jsonrpc.State, modelName string) (tfgridBase.MachinesModel, error)

func (*Client) MachinesRemove

func (c *Client) MachinesRemove(ctx context.Context, conState jsonrpc.State, removeMachine tfgridBase.RemoveMachineParams) (tfgridBase.MachinesModel, error)

func (*Client) RemoveK8sWorker

func (c *Client) RemoveK8sWorker(ctx context.Context, conState jsonrpc.State, removeWorkerInfo tfgridBase.RemoveWorkerParams) (tfgridBase.K8sCluster, error)

func (*Client) RemoveVM

func (c *Client) RemoveVM(ctx context.Context, conState jsonrpc.State, args tfgridBase.RemoveVM) (tfgridBase.VMResult, error)

func (*Client) ZDBDelete

func (c *Client) ZDBDelete(ctx context.Context, conState jsonrpc.State, modelName string) error

func (*Client) ZDBDeploy

func (c *Client) ZDBDeploy(ctx context.Context, conState jsonrpc.State, model tfgridBase.ZDB) (tfgridBase.ZDB, error)

func (*Client) ZDBGet

func (c *Client) ZDBGet(ctx context.Context, conState jsonrpc.State, modelName string) (tfgridBase.ZDB, error)

func (*Client) ZOSDeploymentChanges

func (c *Client) ZOSDeploymentChanges(ctx context.Context, conState jsonrpc.State, request ZOSNodeRequest) ([]gridtypes.Workload, error)

func (*Client) ZOSDeploymentDelete

func (c *Client) ZOSDeploymentDelete(ctx context.Context, conState jsonrpc.State, request ZOSNodeRequest) error

func (*Client) ZOSDeploymentDeploy

func (c *Client) ZOSDeploymentDeploy(ctx context.Context, conState jsonrpc.State, request ZOSNodeRequest) error

func (*Client) ZOSDeploymentGet

func (c *Client) ZOSDeploymentGet(ctx context.Context, conState jsonrpc.State, request ZOSNodeRequest) (gridtypes.Deployment, error)

func (*Client) ZOSDeploymentUpdate

func (c *Client) ZOSDeploymentUpdate(ctx context.Context, conState jsonrpc.State, request ZOSNodeRequest) error

func (*Client) ZOSHasPublicIPv6

func (c *Client) ZOSHasPublicIPv6(ctx context.Context, conState jsonrpc.State, request ZOSNodeRequest) (bool, error)

func (*Client) ZOSNetworkGetPublicExitDevice

func (c *Client) ZOSNetworkGetPublicExitDevice(ctx context.Context, conState jsonrpc.State, request ZOSNodeRequest) (client.ExitDevice, error)

func (*Client) ZOSNetworkInterfaces

func (c *Client) ZOSNetworkInterfaces(ctx context.Context, conState jsonrpc.State, request ZOSNodeRequest) (map[string][]net.IP, error)

func (*Client) ZOSNetworkListAllInterfaces

func (c *Client) ZOSNetworkListAllInterfaces(ctx context.Context, conState jsonrpc.State, request ZOSNodeRequest) (map[string]client.Interface, error)

func (*Client) ZOSNetworkListWGPorts

func (c *Client) ZOSNetworkListWGPorts(ctx context.Context, conState jsonrpc.State, request ZOSNodeRequest) ([]uint16, error)

func (*Client) ZOSNetworkPublicConfigGet

func (c *Client) ZOSNetworkPublicConfigGet(ctx context.Context, conState jsonrpc.State, request ZOSNodeRequest) (client.PublicConfig, error)

func (*Client) ZOSNetworkSetPublicExitDevice

func (c *Client) ZOSNetworkSetPublicExitDevice(ctx context.Context, conState jsonrpc.State, request ZOSNodeRequest) error

func (*Client) ZOSStatisticsGet

func (c *Client) ZOSStatisticsGet(ctx context.Context, conState jsonrpc.State, request ZOSNodeRequest) (tfgrid.Statistics, error)

func (*Client) ZOSStoragePools

func (c *Client) ZOSStoragePools(ctx context.Context, conState jsonrpc.State, request ZOSNodeRequest) ([]client.PoolMetrics, error)

func (*Client) ZOSSystemDMI

func (c *Client) ZOSSystemDMI(ctx context.Context, conState jsonrpc.State, request ZOSNodeRequest) (dmi.DMI, error)

func (*Client) ZOSSystemHypervisor

func (c *Client) ZOSSystemHypervisor(ctx context.Context, conState jsonrpc.State, request ZOSNodeRequest) (string, error)

func (*Client) ZOSSystemVersion

func (c *Client) ZOSSystemVersion(ctx context.Context, conState jsonrpc.State, request ZOSNodeRequest) (client.Version, error)

type Load

type Load struct {
	Mnemonic string `json:"mnemonic"`
	Network  string `json:"network"`
}

type ZOSNodeRequest

type ZOSNodeRequest struct {
	NodeID uint32          `json:"node_id"`
	Data   json.RawMessage `json:"data"`
}

Jump to

Keyboard shortcuts

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