package
1.0.2
Repository: https://github.com/onepanelio/core.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

ApplyLabelSelectQuery returns a query builder that adds where statements to filter by labels in the filter, if there are any labelSelector is the database column that has the labels, such as "we.labels" for workflowExecutions aliased by "we".
CreateWorkflowTemplate creates a new workflow template with the given name.
CreateWorkspaceTemplate creates a new workspace template with the given name.
CronWorkflowsToIDs returns an array of ids from the input CronWorkflow with no duplicates.
FilePathToExtension returns the file's extension if it uses a dot "." to denote it.
FilePathToName returns the name of the file, assuming that "/" denote directories and that the file name is after the last "/".
FilePathToParentPath given a path, returns the parent path, assuming a '/' delimiter Result does not have a trailing slash.
GenerateWorkspaceUID creates a uid from a workspace name.
GetDefaultClient loads a default k8s client.
GetDefaultClientWithDB loads a default k8s client with an existing DB.
IsValidParameter returns nil if the parameter is valid or an error otherwise.
IsValidParameters returns nil if all parameters are valid or an error otherwise.
LabelFromString converts a parses into a label Format: key=<key>,value=<value>.
LabelsFromString parses a string into labels Format: key=<key>,value=<value>&key2=<key2>,value2=<value2>.
LabelsToJSONString converts an array of labels to a json string representing an object where the keys are the label keys and the values are the label values.
LabelsToMapping converts Label structs to a map of key:value.
LogEntryFromLine creates a LogEntry given a line of text it tries to parse out a timestamp and content.
MapParametersByName returns a map where the parameter name is the key and the parameter is the value.
NewClient creates a client to interact with the Onepanel system.
No description provided by the author
NewDB creates a new DB using an existing sqlx.DB connection.
NewSystemConfig creates a System config by getting the required data from a ConfigMap and Secret.
ParseParametersFromManifest takes a manifest and picks out the parameters and returns them as structs.
SelectLabels returns a SelectBuilder that selects key, value columns from the criteria specified in query.
SkipKeysFromString parses keys encoded in a string and returns an array of keys The separator is ";".
No description provided by the author
No description provided by the author
No description provided by the author
WorkflowTemplatesToVersionIDs picks out the WorkflowTemplateVersionID from each template and returns it as an array.
WorkflowTemplateVersionsToIDs returns an array of ids from the input WorkflowTemplateVersion with no duplicates.
WorkspacesToIDs returns an array of ids from the input Workspaces with no duplicates.
WorkspaceTemplatesToVersionIDs plucks the WorkspaceTemplateVersionID from each template and returns it in an array No duplicates are included.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
WorkspaceDAGTemplateCreateStatefulSet is used inside the DAG creation for the workspace.
WorkspaceDAGTemplateCreateWorkspace is used inside the DAG creation for the workspace.
WorkspaceDAGTemplateDeletePVC is used inside the DAG creation for the workspace.
WorkspaceDAGTemplateDeleteStatefulSet is used inside the DAG creation for the workspace.
WorkspaceDAGTemplateDeleteWorkspace is used inside the DAG creation for the workspace.
WorkspaceDAGTemplateGetStatefulSet is used inside the DAG creation for the workspace.
WorkspaceDAGTemplateService is used inside the DAG creation for the workspace.
WorkspaceDAGTemplateSysSetPhasePaused is used inside the DAG creation for the workspace.
WorkspaceDAGTemplateSysSetPhaseRunning is used inside the DAG creation for the workspace.
WorkspaceDAGTemplateSysSetPhaseTerminated is used inside the DAG creation for the workspace.
WorkspaceDAGTemplateVirtualService is used inside the DAG creation for the workspace.
WorkspaceDeletePVCResource is resource used in workspace template creation.
WorkspaceDeleteStatefulSetResource is resource used in workspace template creation.
Workspace phases.
Workspace phases.
Workspace phases.
Workspace phases.
Workspace phases.
WorkspaceGetStatefulSetResource is resource used in workspace template creation.
Workspace phases.
Workspace phases.
Workspace phases.
WorkspaceResource is resource used in workspace template creation.
Workspace phases.
WorkspaceServiceResource is resource used in workspace template creation.
WorkspaceStatefulSetResource is resource used in workspace template creation.
Workspace phases.
Workspace phases.
Workspace phases.
WorkspaceVirtualServiceResource is resource used in workspace template creation.

# Structs

Arguments are the arguments in a manifest file.
ArtifactRepositoryGCSProvider is meant to be used by the CLI.
ArtifactRepositoryProvider is used to setup access into AWS Cloud Storage or Google Cloud storage.
ArtifactRepositoryS3Provider is meant to be used by the CLI.
ArtifactRepositorySecret holds information about a kubernetes Secret.
No description provided by the author
No description provided by the author
CronWorkflow represents a workflow that runs on a cron.
CronWorkflowManifest is a client representation of a CronWorkflowManifest It is usually provided as YAML by a client and this struct helps to marshal/unmarshal it.
No description provided by the author
DB represents a database connection.
Env is a name/value environment variable.
File represents a system file.
GetPresignedURLDownload represents the information available when downloading an object.
InferenceService represents the information necessary to deploy an inference service.
InferenceServiceStatus represents information about an InferenceService.
Label represents a database-backed label row.
No description provided by the author
MachineResources are the cpu/memory limits.
No description provided by the author
No description provided by the author
NamespaceConfig represents configuration for the namespace.
NodePoolOption extends ParameterOption to support resourceRequirements.
No description provided by the author
No description provided by the author
Predictor contains information on what type of predictor we are using, and what resources it has available.
Resources represent the machine resource requests/limits.
No description provided by the author
SelectLabelsQuery represents the options available to filter a select labels query.
Service represents an installable "service" added to the system.
Transformer is a unit that can convert model input and output to different formats in json.
TransformerContainer is a container specific to a Transformer.
WorkflowExecution represents a workflow that is either in execution, or finished/failed.
WorkflowExecutionFilter represents the available ways we can filter WorkflowExecutions.
WorkflowExecutionOptions are options you have for an executing workflow.
WorkflowExecutionSpec is a client representation of a WorkflowExecution.
WorkflowExecutionStatistic is a record keeping track of what happened to a workflow execution.
No description provided by the author
WorkflowExecutionStatus represents the status of a workflow execution.
WorkflowTemplate represents a Workflow Template backed by a database row it stores information required to run an execution A Workflow template is uniquely identified by (namespace, uid, is_archived) (namespace, name, is_archived) -- because we create a uid from the name.
WorkflowTemplateFilter represents the available ways we can filter WorkflowTemplates.
WorkflowTemplateManifest is a client representation of a WorkflowTemplate It is usually provided as YAML by a client and this struct helps to marshal/unmarshal it.
WorkflowTemplateVersion represents a different version of a WorkflowTemplate each version can have a different manifest and labels.
No description provided by the author
WorkspaceFilter represents the available ways we can filter Workspaces.
WorkspaceService represents services available to external access in a Workspace.
No description provided by the author
WorkspaceStatisticReport contains stats on the phases the workspaces in the system are in.
No description provided by the author
WorkspaceTemplate represents the data associated with a WorkspaceTemplate this is a mix of DB and "in-memory" fields.
WorkspaceTemplateFilter represents the available ways we can filter WorkspaceTemplates.

# Interfaces

LabelFilter represents a filter that has labels.

# Type aliases

No description provided by the author
No description provided by the author
Metrics is a convenience type to work with multiple Metric(s).
No description provided by the author
SystemConfig is configuration loaded from kubernetes config and secrets that includes information about the database, server, etc.
No description provided by the author