Documentation ¶
Index ¶
- type Client
- func (c *Client) CreateDatabaseObject(ctx context.Context, obj *dbobjectv1.DatabaseObject) (*dbobjectv1.DatabaseObject, error)
- func (c *Client) DeleteDatabaseObject(ctx context.Context, name string) error
- func (c *Client) GetDatabaseObject(ctx context.Context, name string) (*dbobjectv1.DatabaseObject, error)
- func (c *Client) ListDatabaseObjects(ctx context.Context, pageSize int, nextToken string) ([]*dbobjectv1.DatabaseObject, string, error)
- func (c *Client) UpdateDatabaseObject(ctx context.Context, obj *dbobjectv1.DatabaseObject) (*dbobjectv1.DatabaseObject, error)
- func (c *Client) UpsertDatabaseObject(ctx context.Context, obj *dbobjectv1.DatabaseObject) (*dbobjectv1.DatabaseObject, 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 DatabaseObject client that conforms to the following lib/services interfaces:
- services.DatabaseObjects
func NewClient ¶
func NewClient(grpcClient dbobjectv1.DatabaseObjectServiceClient) *Client
NewClient creates a new Database Object client.
func (*Client) CreateDatabaseObject ¶
func (c *Client) CreateDatabaseObject(ctx context.Context, obj *dbobjectv1.DatabaseObject) (*dbobjectv1.DatabaseObject, error)
CreateDatabaseObject creates the DatabaseObject.
func (*Client) DeleteDatabaseObject ¶
DeleteDatabaseObject removes the specified DatabaseObject resource.
func (*Client) GetDatabaseObject ¶
func (c *Client) GetDatabaseObject(ctx context.Context, name string) (*dbobjectv1.DatabaseObject, error)
GetDatabaseObject returns the specified DatabaseObject resource.
func (*Client) ListDatabaseObjects ¶
func (c *Client) ListDatabaseObjects(ctx context.Context, pageSize int, nextToken string) ([]*dbobjectv1.DatabaseObject, string, error)
ListDatabaseObjects returns a paginated list of DatabaseObjects.
func (*Client) UpdateDatabaseObject ¶
func (c *Client) UpdateDatabaseObject(ctx context.Context, obj *dbobjectv1.DatabaseObject) (*dbobjectv1.DatabaseObject, error)
UpdateDatabaseObject updates the DatabaseObject.
func (*Client) UpsertDatabaseObject ¶
func (c *Client) UpsertDatabaseObject(ctx context.Context, obj *dbobjectv1.DatabaseObject) (*dbobjectv1.DatabaseObject, error)
UpsertDatabaseObject creates or updates a DatabaseObject.
Click to show internal directories.
Click to hide internal directories.