image

package
v0.0.72 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 29, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Build

func Build(cfg *config.Config, dir, imageName string, progressOutput string, writer io.Writer, imagesToPull []string) (string, error)

Build a Cog model from a config

This is separated out from docker.Build(), so that can be as close as possible to the behavior of 'docker build'.

func BuildBase

func BuildBase(cfg *config.Config, dir string, progressOutput string) (string, error)

func BuildFromGenerate added in v0.0.44

func BuildFromGenerate(cfg *config.Config, dir, imageName string, progressOutput string, writer io.Writer, dockerfileContents string) (string, error)

func Generate added in v0.0.44

func Generate(cfg *config.Config, dir string) (string, string, error)

func GenerateOpenAPISchema

func GenerateOpenAPISchema(imageName string, enableGPU bool) (*interface{}, error)

GenerateOpenAPISchema by running the image and executing Cog This will be run as part of the build process then added as a label to the image. It can be retrieved more efficiently with the label by using GetOpenAPISchema

func GetConfig

func GetConfig(imageName string) (*config.Config, error)

func GetOpenAPISchema

func GetOpenAPISchema(imageName string) (*openapi3.T, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL