Documentation
¶
Index ¶
- Variables
- type Client
- func (c *Client) FetchAPIToken(ctx context.Context, entity string) (string, error)
- func (c *Client) InitiateAndDoFileChallenge(ctx context.Context, weights []File, files []File) ([]FileChallengeAnswer, error)
- func (c *Client) PostNewVersion(ctx context.Context, image string, weights []File, files []File, ...) error
- func (c *Client) PostPushStart(ctx context.Context, pushID string, buildTime time.Duration) error
- type CogKey
- type Env
- type File
- type FileChallenge
- type FileChallengeAnswer
- type FileChallengeRequest
- type Keys
- type RuntimeConfig
- type TokenData
- type Version
- type VersionCreate
- type VersionError
- type VersionErrors
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrorBadResponseNewVersionEndpoint = errors.New("Bad response from new version endpoint") ErrorBadResponsePushStartEndpoint = errors.New("Bad response from push start endpoint") ErrorBadResponseInitiateChallengeEndpoint = errors.New("Bad response from start file challenge endpoint") ErrorNoSuchDigest = errors.New("No digest submitted matches the digest requested") )
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) FetchAPIToken ¶ added in v0.15.4
func (*Client) InitiateAndDoFileChallenge ¶
func (*Client) PostNewVersion ¶
type Env ¶
type Env struct { CogGpu string `json:"COG_GPU"` CogPredictTypeStub string `json:"COG_PREDICT_TYPE_STUB"` CogTrainTypeStub string `json:"COG_TRAIN_TYPE_STUB"` CogPredictCodeStrip string `json:"COG_PREDICT_CODE_STRIP"` CogTrainCodeStrip string `json:"COG_TRAIN_CODE_STRIP"` R8CogVersion string `json:"R8_COG_VERSION"` R8CudaVersion string `json:"R8_CUDA_VERSION"` R8CudnnVersion string `json:"R8_CUDNN_VERSION"` R8PythonVersion string `json:"R8_PYTHON_VERSION"` R8TorchVersion string `json:"R8_TORCH_VERSION"` }
type FileChallenge ¶
type FileChallengeAnswer ¶
type FileChallengeRequest ¶
type RuntimeConfig ¶
type Version ¶
type Version struct { Annotations map[string]string `json:"annotations"` CogConfig config.Config `json:"cog_config"` CogVersion string `json:"cog_version"` OpenAPISchema map[string]any `json:"openapi_schema"` RuntimeConfig RuntimeConfig `json:"runtime_config"` Virtual bool `json:"virtual"` PushID string `json:"push_id"` Challenges []FileChallengeAnswer `json:"file_challenges"` }
type VersionCreate ¶ added in v0.14.9
type VersionCreate struct {
Version string `json:"version"`
}
type VersionError ¶ added in v0.14.4
type VersionErrors ¶ added in v0.14.4
type VersionErrors struct { Detail string `json:"detail"` Errors []VersionError `json:"errors"` Status int `json:"status"` Title string `json:"title"` }
Click to show internal directories.
Click to hide internal directories.