Documentation ¶
Index ¶
- Variables
- type Client
- func (c *Client) GetRegistry() docker_registry.Registry
- func (c *Client) ImageCreate(parentRefStr string) (createResp EventResp, err error)
- func (c *Client) ImageLoad(input io.Reader) (loadResp EventResp, err error)
- func (c *Client) ImagePull(refStr string) (pullResp EventResp, err error)
- func (c *Client) ImagePush(refStr string) (pushResp EventResp, err error)
- func (c *Client) RegistryLogin(auth registry.AuthConfig) (authResp registry.AuthenticateOKBody, err error)
- func (c *Client) WithContext(ctx context.Context) *Client
- func (c *Client) WithPage(page util.Page) *Client
- func (c *Client) WithRegistryAuth(authConfig registry.AuthConfig) *Client
- type EventResp
- func (r *EventResp) GetImageCreateResp() (resp ImageCreateResp)
- func (r *EventResp) GetImageLoad() (refStrOrImageID string)
- func (r *EventResp) GetImagePullResp() (resp ImagePullResp)
- func (r *EventResp) GetImagePushResp() (resp ImagePushResp)
- func (r *EventResp) Parse(resp *resty.Response) *EventResp
- type ImageCreateResp
- type ImagePullResp
- type ImagePushResp
Constants ¶
This section is empty.
Variables ¶
View Source
var DecE = safe_json.Goccy().Unmarshal
View Source
var EncE = safe_json.Goccy().Marshal
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) GetRegistry ¶ added in v1.2.35
func (c *Client) GetRegistry() docker_registry.Registry
func (*Client) ImageCreate ¶
func (*Client) RegistryLogin ¶
func (c *Client) RegistryLogin(auth registry.AuthConfig) (authResp registry.AuthenticateOKBody, err error)
func (*Client) WithRegistryAuth ¶
func (c *Client) WithRegistryAuth(authConfig registry.AuthConfig) *Client
type EventResp ¶
type EventResp struct { Status int Message []*jsonmessage.JSONMessage MessageErr []error // unmarshal Message error }
func (*EventResp) GetImageCreateResp ¶
func (r *EventResp) GetImageCreateResp() (resp ImageCreateResp)
func (*EventResp) GetImageLoad ¶ added in v1.2.35
case1: refStr
{ "stream": "Loaded image: hello-world:latest\n" }
case2: imageID
{ "stream": "Loaded image ID: sha256:d2c94e258dcb3c5ac2798d32e1249e42ef01cba4841c2234249495f87264ac5a\n" }
func (*EventResp) GetImagePullResp ¶
func (r *EventResp) GetImagePullResp() (resp ImagePullResp)
func (*EventResp) GetImagePushResp ¶
func (r *EventResp) GetImagePushResp() (resp ImagePushResp)
type ImageCreateResp ¶
type ImagePullResp ¶
type ImagePullResp ImageCreateResp
Click to show internal directories.
Click to hide internal directories.