Documentation ¶
Index ¶
- type Client
- func (c *Client) CreateCrownJewel(ctx context.Context, req *crownjewelv1.CrownJewel) (*crownjewelv1.CrownJewel, error)
- func (c *Client) DeleteAllCrownJewels(_ context.Context) error
- func (c *Client) DeleteCrownJewel(ctx context.Context, name string) error
- func (c *Client) GetCrownJewel(ctx context.Context, name string) (*crownjewelv1.CrownJewel, error)
- func (c *Client) ListCrownJewels(ctx context.Context, pageSize int64, nextToken string) ([]*crownjewelv1.CrownJewel, string, error)
- func (c *Client) UpdateCrownJewel(ctx context.Context, req *crownjewelv1.CrownJewel) (*crownjewelv1.CrownJewel, error)
- func (c *Client) UpsertCrownJewel(ctx context.Context, req *crownjewelv1.CrownJewel) (*crownjewelv1.CrownJewel, 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 a client for the Crown Jewel API.
func NewClient ¶
func NewClient(grpcClient crownjewelv1.CrownJewelServiceClient) *Client
NewClient creates a new Discovery Config client.
func (*Client) CreateCrownJewel ¶
func (c *Client) CreateCrownJewel(ctx context.Context, req *crownjewelv1.CrownJewel) (*crownjewelv1.CrownJewel, error)
CreateCrownJewel creates a new Crown Jewel.
func (*Client) DeleteAllCrownJewels ¶
DeleteAllCrownJewels deletes all Crown Jewels. Not implemented. Added to satisfy the interface.
func (*Client) DeleteCrownJewel ¶
DeleteCrownJewel deletes a Crown Jewel.
func (*Client) GetCrownJewel ¶
func (c *Client) GetCrownJewel(ctx context.Context, name string) (*crownjewelv1.CrownJewel, error)
GetCrownJewel returns a Crown Jewel by name.
func (*Client) ListCrownJewels ¶
func (c *Client) ListCrownJewels(ctx context.Context, pageSize int64, nextToken string) ([]*crownjewelv1.CrownJewel, string, error)
ListCrownJewels returns a list of Crown Jewels.
func (*Client) UpdateCrownJewel ¶
func (c *Client) UpdateCrownJewel(ctx context.Context, req *crownjewelv1.CrownJewel) (*crownjewelv1.CrownJewel, error)
UpdateCrownJewel updates an existing Crown Jewel.
func (*Client) UpsertCrownJewel ¶
func (c *Client) UpsertCrownJewel(ctx context.Context, req *crownjewelv1.CrownJewel) (*crownjewelv1.CrownJewel, error)
UpsertCrownJewel upserts a Crown Jewel.
Click to show internal directories.
Click to hide internal directories.