Documentation ¶
Index ¶
- func Create(client *golangsdk.ServiceClient, opts CreateOpts) (err error)
- func Delete(client *golangsdk.ServiceClient, opts GetOpts) (err error)
- func Update(client *golangsdk.ServiceClient, opts UpdateOpts) (err error)
- type AccessDomain
- type CreateOpts
- type GetOpts
- type ListOpts
- type ListSharedReposOpts
- type UpdateOpts
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Create ¶
func Create(client *golangsdk.ServiceClient, opts CreateOpts) (err error)
func Update ¶
func Update(client *golangsdk.ServiceClient, opts UpdateOpts) (err error)
Types ¶
type AccessDomain ¶
type AccessDomain struct { Exist bool `json:"exist"` // Organization name. Namespace string `json:"namespace"` // Image repository name. Repository string `json:"repository"` // Name of the account used for image sharing AccessDomain string `json:"access_domain"` // Permission Permit string `json:"permit"` // Expiration time. Deadline string `json:"deadline"` // Description Description string `json:"description"` // Creator ID. CreatorID string `json:"creator_id"` // Name of the creator. CreatorName string `json:"creator_name"` // Time when an image is created. It is the UTC standard time. Created string `json:"created"` // Time when an image is updated. It is the UTC standard time. Updated string `json:"updated"` // Status. `true`: valid `false`: expired Status bool `json:"status"` }
func Get ¶
func Get(client *golangsdk.ServiceClient, opts GetOpts) (*AccessDomain, error)
func List ¶
func List(client *golangsdk.ServiceClient, opts ListOpts) ([]AccessDomain, error)
func ListSharedReposDetails ¶ added in v0.5.27
func ListSharedReposDetails(client *golangsdk.ServiceClient, opts ListSharedReposOpts) ([]AccessDomain, error)
type CreateOpts ¶
type CreateOpts struct { // Organization name Namespace string `json:"-" required:"true"` // Image repository name Repository string `json:"-" required:"true"` // Name of the account used for image sharing. AccessDomain string `json:"access_domain"` // Currently, only the read permission is supported. Permit string `json:"permit"` // Valid until (UTC). If the sharing is permanent, the value is forever. Otherwise, the sharing is valid until 00:00:00 of the next day. Deadline string `json:"deadline"` // Description Description string `json:"description"` }
type ListSharedReposOpts ¶ added in v0.5.27
type UpdateOpts ¶
type UpdateOpts struct { // Organization name Namespace string `json:"-" required:"true"` // Image repository name Repository string `json:"-" required:"true"` // Name of the account used for image sharing AccessDomain string `json:"-" required:"true"` // Currently, only the read permission is supported. Permit string `json:"permit"` // Valid until (UTC). If the sharing is permanent, the value is forever. Otherwise, the sharing is valid until 00:00:00 of the next day. Deadline string `json:"deadline"` // Description. This parameter is left blank by default. Description string `json:"description,omitempty"` }
Click to show internal directories.
Click to hide internal directories.