Documentation ¶
Index ¶
- func DecE(b []byte, v any) error
- func EncE(v any) ([]byte, error)
- type APIClient
- type Client
- func (c *Client) GetRegistry() docker_registry.Registry
- func (c *Client) ImageBuild(input io.Reader, buildOptions types.ImageBuildOptions, ctx ...context.Context) (buildResp EventResp, err error)
- 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 EventAPIClient
- type EventResp
- func (r *EventResp) Err() error
- func (r *EventResp) Error() string
- func (r *EventResp) GetImageBuildResp() (resp ImageBuildResp)
- 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) HasError() bool
- func (r *EventResp) Parse(resp *resty.Response) *EventResp
- func (r *EventResp) ParseBytes(bs []byte) *EventResp
- func (r *EventResp) WrapParse(resp *resty.Response, err error) (EventResp, error)
- type ImageAPIClient
- type ImageBuildResp
- type ImageCreateResp
- type ImagePullResp
- type ImagePushResp
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type APIClient ¶ added in v1.2.41
type APIClient interface { EventAPIClient }
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) ImageBuild ¶ added in v1.2.40
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 EventAPIClient ¶ added in v1.2.41
type EventAPIClient interface { ImageAPIClient }
type EventResp ¶
type EventResp struct { Status int // Status is 200, Message is not null Message []*jsonmessage.JSONMessage MessageDecErr []error // unmarshal Message error // Status is not 200, ErrMessage is not null ErrMessage []*jsonmessage.JSONError ErrMessageDecErr []error // unmarshal ErrMessage error }
func (*EventResp) GetImageBuildResp ¶ added in v1.2.36
func (r *EventResp) GetImageBuildResp() (resp ImageBuildResp)
func (*EventResp) GetImageCreateResp ¶
func (r *EventResp) GetImageCreateResp() (resp ImageCreateResp)
func (*EventResp) GetImageLoad ¶ added in v1.2.35
func (*EventResp) GetImagePullResp ¶
func (r *EventResp) GetImagePullResp() (resp ImagePullResp)
func (*EventResp) GetImagePushResp ¶
func (r *EventResp) GetImagePushResp() (resp ImagePushResp)
func (*EventResp) ParseBytes ¶ added in v1.2.36
type ImageAPIClient ¶ added in v1.2.41
type ImageAPIClient interface { ImageLoad(input io.Reader) (EventResp, error) ImagePush(refStr string) (EventResp, error) ImageCreate(parentRefStr string) (EventResp, error) ImagePull(refStr string) (EventResp, error) ImageBuild(input io.Reader, options types.ImageBuildOptions, ctx ...context.Context) (EventResp, error) }
type ImageBuildResp ¶ added in v1.2.36
type ImageCreateResp ¶
type ImagePullResp ¶
type ImagePullResp ImageCreateResp
Click to show internal directories.
Click to hide internal directories.