Documentation
¶
Index ¶
- type Addon
- type Client
- func (c *Client) Create(input *CreateAddonInput) (*CreateAddonOutput, error)
- func (c *Client) Delete(input *DeleteAddonInput) (*DeleteAddonOutput, error)
- func (c *Client) Get(input *GetAddonInput) (*GetAddonOutput, error)
- func (c *Client) List(input *ListAddonInput) (*ListAddonOutput, error)
- func (c *Client) Update(input *UpdateAddonInput) (*UpdateAddonOutput, error)
- type CreateAddonInput
- type CreateAddonOutput
- type DeleteAddonInput
- type DeleteAddonOutput
- type GetAddonInput
- type GetAddonOutput
- type ListAddonInput
- type ListAddonOutput
- type UpdateAddonInput
- type UpdateAddonOutput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Addon ¶
type Addon struct {
Id int `json:"id"`
Name string `json:"name"`
OciRegistry string `json:"oci_registry"`
OciVersion string `json:"oci_version"`
PullPolicy string `json:"pull_policy"`
ActivationPolicy string `json:"activation_policy"`
// Admin only fields
Status string `json:"status,omitempty"`
CreatedAt time.Time `json:"created_at,omitempty"`
UpdatedAt time.Time `json:"updated_at,omitempty"`
}
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) Create ¶
func (c *Client) Create(input *CreateAddonInput) (*CreateAddonOutput, error)
func (*Client) Delete ¶
func (c *Client) Delete(input *DeleteAddonInput) (*DeleteAddonOutput, error)
func (*Client) Get ¶
func (c *Client) Get(input *GetAddonInput) (*GetAddonOutput, error)
func (*Client) List ¶
func (c *Client) List(input *ListAddonInput) (*ListAddonOutput, error)
func (*Client) Update ¶
func (c *Client) Update(input *UpdateAddonInput) (*UpdateAddonOutput, error)
type CreateAddonInput ¶
type CreateAddonOutput ¶
type CreateAddonOutput struct {
Addon *Addon `json:"addon"`
}
type DeleteAddonInput ¶
type DeleteAddonInput struct {
AddonId int
}
type DeleteAddonOutput ¶
type DeleteAddonOutput struct {
}
type GetAddonInput ¶
type GetAddonInput struct {
AddonId int
}
type GetAddonOutput ¶
type GetAddonOutput struct {
Addon *Addon `json:"addon"`
}
type ListAddonInput ¶
type ListAddonInput struct{}
func (*ListAddonInput) ToQueryParams ¶
func (i *ListAddonInput) ToQueryParams() map[string]string
type ListAddonOutput ¶
type ListAddonOutput struct {
Addons []*Addon `json:"addons"`
}
type UpdateAddonInput ¶
type UpdateAddonOutput ¶
type UpdateAddonOutput struct {
Addon *Addon `json:"addon"`
}
Click to show internal directories.
Click to hide internal directories.