models

package
v0.0.0-...-e371549 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// ConfigurationMustSignedInYes captures enum value "yes"
	ConfigurationMustSignedInYes string = "yes"

	// ConfigurationMustSignedInNo captures enum value "no"
	ConfigurationMustSignedInNo string = "no"
)
View Source
const (

	// ConfigurationRescalePlatformHTTPSPlatformRescaleCom captures enum value "https://platform.rescale.com"
	ConfigurationRescalePlatformHTTPSPlatformRescaleCom string = "https://platform.rescale.com"

	// ConfigurationRescalePlatformHTTPSPlatformRescaleJp captures enum value "https://platform.rescale.jp"
	ConfigurationRescalePlatformHTTPSPlatformRescaleJp string = "https://platform.rescale.jp"

	// ConfigurationRescalePlatformHTTPSKrRescaleCom captures enum value "https://kr.rescale.com"
	ConfigurationRescalePlatformHTTPSKrRescaleCom string = "https://kr.rescale.com"

	// ConfigurationRescalePlatformHTTPSEuRescaleCom captures enum value "https://eu.rescale.com"
	ConfigurationRescalePlatformHTTPSEuRescaleCom string = "https://eu.rescale.com"
)
View Source
const (

	// ConfigurationUseK8sYes captures enum value "yes"
	ConfigurationUseK8sYes string = "yes"

	// ConfigurationUseK8sNo captures enum value "no"
	ConfigurationUseK8sNo string = "no"
)
View Source
const (

	// ConfigurationUseNgcYes captures enum value "yes"
	ConfigurationUseNgcYes string = "yes"

	// ConfigurationUseNgcNo captures enum value "no"
	ConfigurationUseNgcNo string = "no"
)
View Source
const (

	// ConfigurationUsePrivateRegistryYes captures enum value "yes"
	ConfigurationUsePrivateRegistryYes string = "yes"

	// ConfigurationUsePrivateRegistryNo captures enum value "no"
	ConfigurationUsePrivateRegistryNo string = "no"
)
View Source
const (

	// ConfigurationUseRescaleYes captures enum value "yes"
	ConfigurationUseRescaleYes string = "yes"

	// ConfigurationUseRescaleNo captures enum value "no"
	ConfigurationUseRescaleNo string = "no"
)
View Source
const (

	// JobPlatformKubernetes captures enum value "kubernetes"
	JobPlatformKubernetes string = "kubernetes"

	// JobPlatformRescale captures enum value "rescale"
	JobPlatformRescale string = "rescale"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AppError

type AppError struct {

	// caption
	// Required: true
	Caption *string `json:"caption"`

	// condition
	Condition string `json:"condition,omitempty"`

	// detail
	Detail string `json:"detail,omitempty"`

	// when it happened
	// Format: date-time
	OccursAt strfmt.DateTime `json:"occursAt,omitempty"`

	// owner
	Owner string `json:"owner,omitempty"`
}

AppError Application Error

swagger:model AppError

func (*AppError) MarshalBinary

func (m *AppError) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AppError) UnmarshalBinary

func (m *AppError) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AppError) Validate

func (m *AppError) Validate(formats strfmt.Registry) error

Validate validates this app error

type Configuration

type Configuration struct {

	// Hostname for the private Docker registry
	DockerHostname string `json:"docker_hostname,omitempty"`

	// Fist 3 chars of the password of the private Docker registry
	DockerPassword string `json:"docker_password,omitempty"`

	// Docker Registry endpoint
	DockerRegistry string `json:"docker_registry,omitempty"`

	// Username for the private Docker registry
	DockerUsername string `json:"docker_username,omitempty"`

	// kubecfg
	K8sConfig string `json:"k8s_config,omitempty"`

	// Number of the host GPUs
	// Required: true
	LocalGpus *int64 `json:"local_gpus"`

	// Number of GPUs per container
	// Required: true
	LocalGpusPerContainer *int64 `json:"local_gpus_per_container"`

	// Users should be signed in
	// Required: true
	// Enum: [yes no]
	MustSignedIn *string `json:"must_signed_in"`

	// Fist 5 chars of NGC API Key
	NgcApikey string `json:"ngc_apikey,omitempty"`

	// E-mail address for NGC console
	// Format: email
	NgcEmail strfmt.Email `json:"ngc_email,omitempty"`

	// Fist 3 chars of the password for NGC console
	NgcPassword string `json:"ngc_password,omitempty"`

	// Fist 5 chars of Rescal API Key
	RescaleKey string `json:"rescale_key,omitempty"`

	// rescale platform
	// Enum: [https://platform.rescale.com https://platform.rescale.jp https://kr.rescale.com https://eu.rescale.com]
	RescalePlatform string `json:"rescale_platform,omitempty"`

	// Kubernetes will be used or not
	// Enum: [yes no]
	UseK8s string `json:"use_k8s,omitempty"`

	// NGC will be used or not
	// Enum: [yes no]
	UseNgc string `json:"use_ngc,omitempty"`

	// Private registry will be used or not
	// Enum: [yes no]
	UsePrivateRegistry string `json:"use_private_registry,omitempty"`

	// Rescale will be used or not
	// Enum: [yes no]
	UseRescale string `json:"use_rescale,omitempty"`
}

Configuration app's configurations

swagger:model Configuration

func (*Configuration) MarshalBinary

func (m *Configuration) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Configuration) UnmarshalBinary

func (m *Configuration) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Configuration) Validate

func (m *Configuration) Validate(formats strfmt.Registry) error

Validate validates this configuration

type Endpoints

type Endpoints struct {

	// The endpoint for private docker registry
	DockerRegistry string `json:"docker_registry,omitempty"`

	// The endpoint for Kubernetes API
	KubernetesAPI string `json:"kubernetes_api,omitempty"`

	// The endpoint for NGC registry
	NgcRegistry string `json:"ngc_registry,omitempty"`

	// The endpoint for Rescale API
	RescaleAPI string `json:"rescale_api,omitempty"`
}

Endpoints third-party endpoints

swagger:model Endpoints

func (*Endpoints) MarshalBinary

func (m *Endpoints) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Endpoints) UnmarshalBinary

func (m *Endpoints) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Endpoints) Validate

func (m *Endpoints) Validate(formats strfmt.Registry) error

Validate validates this endpoints

type Error

type Error struct {

	// code
	// Required: true
	Code *string `json:"code"`

	// message
	// Required: true
	Message *string `json:"message"`
}

Error error

swagger:model Error

func (*Error) MarshalBinary

func (m *Error) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Error) UnmarshalBinary

func (m *Error) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Error) Validate

func (m *Error) Validate(formats strfmt.Registry) error

Validate validates this error

type IPythonNotebook

type IPythonNotebook struct {

	// file name
	// Required: true
	Name *string `json:"name"`
}

IPythonNotebook .ipynb file attributes

swagger:model IPythonNotebook

func (*IPythonNotebook) MarshalBinary

func (m *IPythonNotebook) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*IPythonNotebook) UnmarshalBinary

func (m *IPythonNotebook) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*IPythonNotebook) Validate

func (m *IPythonNotebook) Validate(formats strfmt.Registry) error

Validate validates this i python notebook

type Image

type Image struct {

	// created unix timestamp
	Created string `json:"created,omitempty"`

	// the image ID
	// Required: true
	ID *string `json:"id"`

	// the image parent ID
	ParentID string `json:"parentID,omitempty"`

	// the image digests
	RepoDigests []string `json:"repoDigests"`

	// the image name/tag
	// Required: true
	RepoTags []string `json:"repoTags"`

	// size of the image
	Size int64 `json:"size,omitempty"`

	// status of the image
	Status string `json:"status,omitempty"`

	// virtual size of the image
	VirtualSize int64 `json:"virtualSize,omitempty"`
}

Image docker image information

swagger:model Image

func (*Image) MarshalBinary

func (m *Image) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Image) UnmarshalBinary

func (m *Image) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Image) Validate

func (m *Image) Validate(formats strfmt.Registry) error

Validate validates this image

type Job

type Job struct {

	// the container labels
	Commands []string `json:"commands"`

	// ended unix timestamp
	// Format: date-time
	Ended strfmt.DateTime `json:"ended,omitempty"`

	// A link to an external status page
	ExternalLink string `json:"external_link,omitempty"`

	// Job ID
	// Required: true
	ID *string `json:"id"`

	// the image ID
	Image string `json:"image,omitempty"`

	// the container labels
	Mounts []string `json:"mounts"`

	// platform
	// Enum: [kubernetes rescale]
	Platform string `json:"platform,omitempty"`

	// started unix timestamp
	// Format: date-time
	Started strfmt.DateTime `json:"started,omitempty"`

	// the status of the job
	Status string `json:"status,omitempty"`
}

Job Rescale Job information

swagger:model Job

func (*Job) MarshalBinary

func (m *Job) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Job) UnmarshalBinary

func (m *Job) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Job) Validate

func (m *Job) Validate(formats strfmt.Registry) error

Validate validates this job

type JobDetail

type JobDetail struct {
	Job

	JobLogs

	JobFiles
}

JobDetail the details of a job

swagger:model JobDetail

func (*JobDetail) MarshalBinary

func (m *JobDetail) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (JobDetail) MarshalJSON

func (m JobDetail) MarshalJSON() ([]byte, error)

MarshalJSON marshals this object to a JSON structure

func (*JobDetail) UnmarshalBinary

func (m *JobDetail) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*JobDetail) UnmarshalJSON

func (m *JobDetail) UnmarshalJSON(raw []byte) error

UnmarshalJSON unmarshals this object from a JSON structure

func (*JobDetail) Validate

func (m *JobDetail) Validate(formats strfmt.Registry) error

Validate validates this job detail

type JobFile

type JobFile struct {

	// download URL
	DownloadURL string `json:"downloadURL,omitempty"`

	// name
	// Required: true
	Name *string `json:"name"`

	// size
	// Required: true
	Size *int64 `json:"size"`
}

JobFile the output file

swagger:model JobFile

func (*JobFile) MarshalBinary

func (m *JobFile) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*JobFile) UnmarshalBinary

func (m *JobFile) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*JobFile) Validate

func (m *JobFile) Validate(formats strfmt.Registry) error

Validate validates this job file

type JobFiles

type JobFiles struct {

	// api token
	APIToken string `json:"apiToken,omitempty"`

	// files
	// Required: true
	Files []*JobFile `json:"files"`
}

JobFiles the output files

swagger:model JobFiles

func (*JobFiles) MarshalBinary

func (m *JobFiles) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*JobFiles) UnmarshalBinary

func (m *JobFiles) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*JobFiles) Validate

func (m *JobFiles) Validate(formats strfmt.Registry) error

Validate validates this job files

type JobLog

type JobLog struct {

	// log
	// Required: true
	Log *string `json:"log"`

	// time
	// Format: date-time
	Time strfmt.DateTime `json:"time,omitempty"`
}

JobLog the log structure

swagger:model JobLog

func (*JobLog) MarshalBinary

func (m *JobLog) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*JobLog) UnmarshalBinary

func (m *JobLog) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*JobLog) Validate

func (m *JobLog) Validate(formats strfmt.Registry) error

Validate validates this job log

type JobLogs

type JobLogs struct {

	// logs
	// Required: true
	Logs []*JobLog `json:"logs"`
}

JobLogs the log structure

swagger:model JobLogs

func (*JobLogs) MarshalBinary

func (m *JobLogs) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*JobLogs) UnmarshalBinary

func (m *JobLogs) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*JobLogs) Validate

func (m *JobLogs) Validate(formats strfmt.Registry) error

Validate validates this job logs

type NgcImage

type NgcImage struct {

	// the image size
	// Required: true
	Size *int64 `json:"size"`

	// the image tag
	// Required: true
	Tag *string `json:"tag"`

	// updated unix timestamp
	// Required: true
	// Format: date-time
	Updated *strfmt.DateTime `json:"updated"`
}

NgcImage NGC docker image information

swagger:model NgcImage

func (*NgcImage) MarshalBinary

func (m *NgcImage) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*NgcImage) UnmarshalBinary

func (m *NgcImage) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*NgcImage) Validate

func (m *NgcImage) Validate(formats strfmt.Registry) error

Validate validates this ngc image

type Notebook

type Notebook struct {

	// the number of NVIDIA GPUs
	Gpus string `json:"gpus,omitempty"`

	// the container ID
	// Required: true
	ID *string `json:"id"`

	// the image ID
	// Required: true
	Image *string `json:"image"`

	// the container name
	// Required: true
	Name *string `json:"name"`

	// the container published port
	Port int64 `json:"port,omitempty"`

	// started unix timestamp
	// Format: date-time
	Started strfmt.DateTime `json:"started,omitempty"`

	// state of the container
	State string `json:"state,omitempty"`
}

Notebook Jupyter notebook information

swagger:model Notebook

func (*Notebook) MarshalBinary

func (m *Notebook) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Notebook) UnmarshalBinary

func (m *Notebook) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Notebook) Validate

func (m *Notebook) Validate(formats strfmt.Registry) error

Validate validates this notebook

type NotebookDetail

type NotebookDetail struct {

	// ended unix timestamp
	// Format: date-time
	Ended strfmt.DateTime `json:"ended,omitempty"`

	// the container ID
	// Required: true
	ID *string `json:"id"`

	// the container labels
	Mounts []string `json:"mounts"`

	// the container name
	Name string `json:"name,omitempty"`

	// the container published port
	Port int64 `json:"port,omitempty"`

	// started unix timestamp
	// Format: date-time
	Started strfmt.DateTime `json:"started,omitempty"`

	// state of the container
	State string `json:"state,omitempty"`

	// Jupyter notebook's login token
	// Required: true
	Token *string `json:"token"`
}

NotebookDetail Rescale Job information

swagger:model NotebookDetail

func (*NotebookDetail) MarshalBinary

func (m *NotebookDetail) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*NotebookDetail) UnmarshalBinary

func (m *NotebookDetail) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*NotebookDetail) Validate

func (m *NotebookDetail) Validate(formats strfmt.Registry) error

Validate validates this notebook detail

type Repository

type Repository struct {

	// the image description
	Description string `json:"description,omitempty"`

	// the image name
	// Required: true
	Name *string `json:"name"`

	// the repositry's namespace
	// Required: true
	Namespace *string `json:"namespace"`
}

Repository docker image information

swagger:model Repository

func (*Repository) MarshalBinary

func (m *Repository) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Repository) UnmarshalBinary

func (m *Repository) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Repository) Validate

func (m *Repository) Validate(formats strfmt.Registry) error

Validate validates this repository

type RescaleApplication

type RescaleApplication struct {

	// code
	// Required: true
	Code *string `json:"code"`

	// versions
	Versions []*RescaleApplicationVersion `json:"versions"`
}

RescaleApplication Rescale Application

swagger:model RescaleApplication

func (*RescaleApplication) MarshalBinary

func (m *RescaleApplication) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RescaleApplication) UnmarshalBinary

func (m *RescaleApplication) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RescaleApplication) Validate

func (m *RescaleApplication) Validate(formats strfmt.Registry) error

Validate validates this rescale application

type RescaleApplicationVersion

type RescaleApplicationVersion struct {

	// code
	// Required: true
	Code *string `json:"code"`

	// supported CoreTypes
	Coretypes []string `json:"coretypes"`

	// id
	// Required: true
	ID *string `json:"id"`

	// version
	// Required: true
	Version *string `json:"version"`
}

RescaleApplicationVersion version of Rescale Applications

swagger:model RescaleApplicationVersion

func (*RescaleApplicationVersion) MarshalBinary

func (m *RescaleApplicationVersion) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RescaleApplicationVersion) UnmarshalBinary

func (m *RescaleApplicationVersion) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RescaleApplicationVersion) Validate

func (m *RescaleApplicationVersion) Validate(formats strfmt.Registry) error

Validate validates this rescale application version

type RescaleCoreType

type RescaleCoreType struct {

	// base clock
	BaseClock string `json:"baseClock,omitempty"`

	// code
	// Required: true
	Code *string `json:"code"`

	// interconnect
	Interconnect string `json:"interconnect,omitempty"`

	// name
	// Required: true
	Name *string `json:"name"`

	// processor
	Processor string `json:"processor,omitempty"`

	// resources
	Resources []*RescaleCoreTypeResources `json:"resources"`
}

RescaleCoreType Rescale CoreType

swagger:model RescaleCoreType

func (*RescaleCoreType) MarshalBinary

func (m *RescaleCoreType) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RescaleCoreType) UnmarshalBinary

func (m *RescaleCoreType) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RescaleCoreType) Validate

func (m *RescaleCoreType) Validate(formats strfmt.Registry) error

Validate validates this rescale core type

type RescaleCoreTypeResources

type RescaleCoreTypeResources struct {

	// the number of CPU cores
	// Required: true
	Cores *int64 `json:"cores"`

	// the number of GPUs
	// Required: true
	Gpus *int64 `json:"gpus"`
}

RescaleCoreTypeResources CPU/GPU cores

swagger:model RescaleCoreTypeResources

func (*RescaleCoreTypeResources) MarshalBinary

func (m *RescaleCoreTypeResources) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RescaleCoreTypeResources) UnmarshalBinary

func (m *RescaleCoreTypeResources) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RescaleCoreTypeResources) Validate

func (m *RescaleCoreTypeResources) Validate(formats strfmt.Registry) error

Validate validates this rescale core type resources

type Session

type Session struct {

	// API Token
	// Required: true
	Token *string `json:"token"`
}

Session docker image information

swagger:model Session

func (*Session) MarshalBinary

func (m *Session) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Session) UnmarshalBinary

func (m *Session) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Session) Validate

func (m *Session) Validate(formats strfmt.Registry) error

Validate validates this session

type Version

type Version struct {

	// date which this app was built at
	BuildDate string `json:"build_date,omitempty"`

	// version name
	// Required: true
	Version *string `json:"version"`
}

Version application version

swagger:model Version

func (*Version) MarshalBinary

func (m *Version) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Version) UnmarshalBinary

func (m *Version) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Version) Validate

func (m *Version) Validate(formats strfmt.Registry) error

Validate validates this version

type Versions

type Versions struct {

	// Current running service version
	// Required: true
	Current *Version `json:"current"`

	// The latest application version which can be installed
	// Required: true
	Latest *Version `json:"latest"`
}

Versions application versions

swagger:model Versions

func (*Versions) MarshalBinary

func (m *Versions) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Versions) UnmarshalBinary

func (m *Versions) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Versions) Validate

func (m *Versions) Validate(formats strfmt.Registry) error

Validate validates this versions

type Workspace

type Workspace struct {

	// absolute path
	AbsolutePath string `json:"absolute_path,omitempty"`

	// Jobs which are mounting the workspace
	Jobs []string `json:"jobs"`

	// Notebooks which are mounting the workspace
	Notebooks []string `json:"notebooks"`

	// path
	// Required: true
	Path *string `json:"path"`
}

Workspace User's workspace

swagger:model Workspace

func (*Workspace) MarshalBinary

func (m *Workspace) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Workspace) UnmarshalBinary

func (m *Workspace) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Workspace) Validate

func (m *Workspace) Validate(formats strfmt.Registry) error

Validate validates this workspace

Jump to

Keyboard shortcuts

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