Documentation ¶
Overview ¶
Package client implements image factory HTTP API client.
Package client implements image factory HTTP API client.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsHTTPErrorCode ¶ added in v0.2.1
IsHTTPErrorCode checks if the error is HTTP error with a specific doe.
func IsInvalidSchematicError ¶
IsInvalidSchematicError checks if the error is invalid schematic.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is the Image Factory HTTP API client.
func (*Client) ExtensionsVersions ¶
func (c *Client) ExtensionsVersions(ctx context.Context, talosVersion string) ([]ExtensionInfo, error)
ExtensionsVersions gets the version of the extension for a Talos version.
type ExtensionInfo ¶
type ExtensionInfo struct { Name string `json:"name"` Ref string `json:"ref"` Digest string `json:"digest"` }
ExtensionInfo defines extensions versions list response item.
type InvalidSchematicError ¶
type InvalidSchematicError struct {
// contains filtered or unexported fields
}
InvalidSchematicError is parsed from 400 response from the server.
func (*InvalidSchematicError) Error ¶
func (e *InvalidSchematicError) Error() string
Error implements error interface.
type Option ¶
type Option func(*Options)
Option defines a single client option setter.
func WithClient ¶
WithClient overrides default client instance.
Click to show internal directories.
Click to hide internal directories.