Documentation ¶
Index ¶
- Variables
- func GetConnection() (*grpc.ClientConn, error)
- func NewClientConn(authority string, tls bool) (*grpc.ClientConn, error)
- func Setup() error
- func TinkHardwareClient() (hardware.HardwareServiceClient, error)
- func TinkTemplateClient() (template.TemplateServiceClient, error)
- func TinkWorkflowClient() (workflow.WorkflowServiceClient, error)
- type FullClient
Constants ¶
This section is empty.
Variables ¶
View Source
var ( TemplateClient template.TemplateServiceClient WorkflowClient workflow.WorkflowServiceClient HardwareClient hardware.HardwareServiceClient )
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 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.
Click to show internal directories.
Click to hide internal directories.