libkitsune

package module
v0.0.0-...-6226547 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2022 License: Apache-2.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KitsuneClient

type KitsuneClient struct {
	Cc            *grpc.ClientConn
	ImageRegistry v1.ImageRegistryServiceClient
	VmRegistry    v1.VirtualMachineRegistryServiceClient
}

KitsuneClient is an implementation of KitsuneClientInterface and a collection of a grpc.ClientConnInterface and the services provided over that connection.

func NewKitsuneClient

func NewKitsuneClient(target string, ssl bool) (*KitsuneClient, error)

NewKitsuneClient dials the supplied target and creates a new KitsuneClient with the resulting grpc.ClientConn.

func NewOrCachedKitsuneClient

func NewOrCachedKitsuneClient(target string, ssl bool) (*KitsuneClient, error)

NewOrCachedKitsuneClient attempts to fetch a KitsuneClient corresponding to the supplied target from cache, creating a new KitsuneClient and inserting it into the cache if not successful.

func (*KitsuneClient) Close

func (c *KitsuneClient) Close() error

Close closes the grpc.ClientConn of the KitsuneClient and removes it from cache if present.

type KitsuneClientInterface

type KitsuneClientInterface interface {
	Close() error
}

KitsuneClientInterface is the abstract version of KitsuneClient.

Directories

Path Synopsis
proto

Jump to

Keyboard shortcuts

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