Documentation ¶
Index ¶
- type Client
- func (c *Client) CreateDiscoveryConfig(ctx context.Context, discoveryConfig *discoveryconfig.DiscoveryConfig) (*discoveryconfig.DiscoveryConfig, error)
- func (c *Client) DeleteAllDiscoveryConfigs(ctx context.Context) error
- func (c *Client) DeleteDiscoveryConfig(ctx context.Context, name string) error
- func (c *Client) GetDiscoveryConfig(ctx context.Context, name string) (*discoveryconfig.DiscoveryConfig, error)
- func (c *Client) ListDiscoveryConfigs(ctx context.Context, pageSize int, nextToken string) ([]*discoveryconfig.DiscoveryConfig, string, error)
- func (c *Client) UpdateDiscoveryConfig(ctx context.Context, discoveryConfig *discoveryconfig.DiscoveryConfig) (*discoveryconfig.DiscoveryConfig, error)
- func (c *Client) UpdateDiscoveryConfigStatus(ctx context.Context, name string, status discoveryconfig.Status) (*discoveryconfig.DiscoveryConfig, error)
- func (c *Client) UpsertDiscoveryConfig(ctx context.Context, discoveryConfig *discoveryconfig.DiscoveryConfig) (*discoveryconfig.DiscoveryConfig, error)
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 is an DiscoveryConfig client that conforms to the following lib/services interfaces:
- services.DiscoveryConfigs
func NewClient ¶
func NewClient(grpcClient discoveryconfigv1.DiscoveryConfigServiceClient) *Client
NewClient creates a new Discovery Config client.
func (*Client) CreateDiscoveryConfig ¶
func (c *Client) CreateDiscoveryConfig(ctx context.Context, discoveryConfig *discoveryconfig.DiscoveryConfig) (*discoveryconfig.DiscoveryConfig, error)
CreateDiscoveryConfig creates the DiscoveryConfig.
func (*Client) DeleteAllDiscoveryConfigs ¶
DeleteAllDiscoveryConfigs removes all DiscoveryConfigs.
func (*Client) DeleteDiscoveryConfig ¶
DeleteDiscoveryConfig removes the specified DiscoveryConfig resource.
func (*Client) GetDiscoveryConfig ¶
func (c *Client) GetDiscoveryConfig(ctx context.Context, name string) (*discoveryconfig.DiscoveryConfig, error)
GetDiscoveryConfig returns the specified DiscoveryConfig resource.
func (*Client) ListDiscoveryConfigs ¶
func (c *Client) ListDiscoveryConfigs(ctx context.Context, pageSize int, nextToken string) ([]*discoveryconfig.DiscoveryConfig, string, error)
ListDiscoveryConfigs returns a paginated list of DiscoveryConfigs.
func (*Client) UpdateDiscoveryConfig ¶
func (c *Client) UpdateDiscoveryConfig(ctx context.Context, discoveryConfig *discoveryconfig.DiscoveryConfig) (*discoveryconfig.DiscoveryConfig, error)
UpdateDiscoveryConfig updates the DiscoveryConfig.
func (*Client) UpdateDiscoveryConfigStatus ¶
func (c *Client) UpdateDiscoveryConfigStatus(ctx context.Context, name string, status discoveryconfig.Status) (*discoveryconfig.DiscoveryConfig, error)
UpdateDiscoveryConfigStatus updates the DiscoveryConfig Status field.
func (*Client) UpsertDiscoveryConfig ¶
func (c *Client) UpsertDiscoveryConfig(ctx context.Context, discoveryConfig *discoveryconfig.DiscoveryConfig) (*discoveryconfig.DiscoveryConfig, error)
UpsertDiscoveryConfig creates or updates a DiscoveryConfig.