Documentation ¶
Index ¶
- Constants
- type Client
- func (c *Client) CreateDataTenant(data DataTenantPayload) error
- func (c *Client) CreateMetadataTenant(name, env string, data MetadataTenantPayload) error
- func (c *Client) DeleteDataTenant(name, env string) error
- func (c *Client) DeleteMetadataTenant(name, env, key string) error
- func (c *Client) GetMetadataTenant(name, env string) (_ []MetadataItem, err error)
- type Config
- type DataTenantItem
- type DataTenantPayload
- type MetadataItem
- type MetadataTenantPayload
- type NamespaceItem
Constants ¶
View Source
const ( MaasConsumerEnvironmentKey = "maasConsumerEnvironment" MaasConsumerRegionKey = "maasConsumerRegion" MaasConsumerSubAccountKey = "maasConsumerSubAccount" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) CreateDataTenant ¶
func (c *Client) CreateDataTenant(data DataTenantPayload) error
func (*Client) CreateMetadataTenant ¶
func (c *Client) CreateMetadataTenant(name, env string, data MetadataTenantPayload) error
func (*Client) DeleteDataTenant ¶
func (*Client) DeleteMetadataTenant ¶
func (*Client) GetMetadataTenant ¶
func (c *Client) GetMetadataTenant(name, env string) (_ []MetadataItem, err error)
type DataTenantItem ¶
type DataTenantItem struct { Namespace NamespaceItem `json:"namespace"` Name string `json:"name"` Environment string `json:"environment"` }
type DataTenantPayload ¶
type MetadataItem ¶
type MetadataItem struct { DataTenant DataTenantItem `json:"dataTenant"` Key string `json:"key"` Value string `json:"value"` }
type MetadataTenantPayload ¶
type NamespaceItem ¶
type NamespaceItem struct {
Name string `json:"name"`
}
Click to show internal directories.
Click to hide internal directories.