Documentation
¶
Index ¶
- Constants
- func Download(URL *url.URL) ([]byte, error)
- func Init(name string) error
- func ParseYAML(name string, yamlBytes []byte, variablesBytes []byte, set []string) ([]json.RawMessage, error)
- func ReadYAMLFile(path string) ([]byte, error)
- type Client
- func (c *Client) CreatePackage(ctx context.Context, sourceDir, outputDir string) (*PackageMetadata, error)
- func (c *Client) DownloadPackage(ctx context.Context, repository, tag, outputDir string) (*PackageMetadata, error)
- func (c *Client) UploadPackage(ctx context.Context, packagePath, repository, tag string) error
- type Config
- type Definition
- type Pack
- type PackageMetadata
Constants ¶
View Source
const ( DefaultRegistry = "registry.simplecontainer.io" PackageMetadataFile = "Pack.yaml" DefaultMediaType = "application/vnd.simplecontainer.pack.v1+json" )
Variables ¶
This section is empty.
Functions ¶
func ReadYAMLFile ¶
Types ¶
type Client ¶ added in v0.1.57
type Client struct {
// contains filtered or unexported fields
}
func (*Client) CreatePackage ¶ added in v0.1.57
func (*Client) DownloadPackage ¶ added in v0.1.57
type Definition ¶ added in v0.1.56
type Pack ¶ added in v0.1.36
type Pack struct {
Name string
Version string
Definitions []*Definition `yaml:"-"`
Variables []byte `yaml:"-"`
}
type PackageMetadata ¶ added in v0.1.57
Click to show internal directories.
Click to hide internal directories.