Documentation ¶
Overview ¶
Package client implements a ResourceDiscovery service (RDS) client.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client represents an RDS based client instance.
func New ¶
func New(c *configpb.ClientConf, listResources ListResourcesFunc, l *logger.Logger) (*Client, error)
New creates an RDS (ResourceDiscovery service) client instance and set it up for continuous refresh.
func (*Client) ListEndpoints ¶
ListEndpoints returns the list of resources.
type ListResourcesFunc ¶
type ListResourcesFunc func(context.Context, *pb.ListResourcesRequest) (*pb.ListResourcesResponse, error)
ListResourcesFunc is a function that takes ListResourcesRequest and returns ListResourcesResponse.
Click to show internal directories.
Click to hide internal directories.