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.
Click to show internal directories.
Click to hide internal directories.