client

package
v0.11.8 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2019 License: Apache-2.0 Imports: 8 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	Start(ctx context.Context, cc *grpc.ClientConn) error
}

func NewClient

func NewClient(nodeinfo *core.Node, rtype TypeRecord, apply func(cache.Resources) error) Client

type TypeRecord

type TypeRecord interface {
	Type() string
	EmptyProto() cache.ResourceProto
	ProtoToResource(r cache.ResourceProto) cache.Resource
}

func NewTypeRecord

func NewTypeRecord(
	rtype string,
	proto func() cache.ResourceProto,
	protoToResource func(r cache.ResourceProto) cache.Resource,
) TypeRecord

Jump to

Keyboard shortcuts

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