crownjewel

package
v0.0.0-...-5733a65 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

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 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

func (c *Client) DeleteAllCrownJewels(_ context.Context) error

DeleteAllCrownJewels deletes all Crown Jewels. Not implemented. Added to satisfy the interface.

func (*Client) DeleteCrownJewel

func (c *Client) DeleteCrownJewel(ctx context.Context, name string) error

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.

Jump to

Keyboard shortcuts

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