client

package
v0.8.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

gRPC clients.

Functions

func GetConnection

func GetConnection() (*grpc.ClientConn, error)

GetConnection returns a gRPC client connection.

func NewClientConn added in v0.5.0

func NewClientConn(authority string, tls bool) (*grpc.ClientConn, error)

func Setup

func Setup() error

Setup : create a connection to server.

func TinkHardwareClient

func TinkHardwareClient() (hardware.HardwareServiceClient, error)

TinkHardwareClient creates a new hardware client.

func TinkTemplateClient added in v0.7.0

func TinkTemplateClient() (template.TemplateServiceClient, error)

TinkTemplateClient creates a new hardware client.

func TinkWorkflowClient

func TinkWorkflowClient() (workflow.WorkflowServiceClient, error)

TinkWorkflowClient creates a new workflow client.

Types

type FullClient added in v0.5.0

type FullClient struct {
	TemplateClient template.TemplateServiceClient
	WorkflowClient workflow.WorkflowServiceClient
	HardwareClient hardware.HardwareServiceClient
}

FullClient aggregates all the gRPC clients available from Tinkerbell Server.

func NewFullClient added in v0.5.0

func NewFullClient(conn grpc.ClientConnInterface) *FullClient

NewFullClient returns a FullClient. A structure that contains all the clients made available from tink-server.

func TinkFullClient added in v0.7.0

func TinkFullClient() (FullClient, error)

TinkFullClient creates a new full client.

Jump to

Keyboard shortcuts

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