Documentation ¶
Overview ¶
* Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License.
Index ¶
- Constants
- Variables
- func Kind(kind string) schema.GroupKind
- func Resource(resource string) schema.GroupResource
- type Submarine
- type SubmarineDatabaseSpec
- type SubmarineList
- type SubmarineMinioSpec
- type SubmarineMlflowSpec
- type SubmarineServerSpec
- type SubmarineSpec
- type SubmarineState
- type SubmarineStateType
- type SubmarineStatus
- type SubmarineTensorboardSpec
Constants ¶
const ( GroupName = "submarine.apache.org" GroupVersion = "v1alpha1" )
Variables ¶
var ( // SchemeBuilder initializes a scheme builder SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) // AddToScheme is a global function that registers this API group & version to a scheme AddToScheme = SchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: GroupVersion}
SchemeGroupVersion is group version used to register these objects
Functions ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
Types ¶
type Submarine ¶
type Submarine struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec SubmarineSpec `json:"spec"` Status SubmarineStatus `json:"status"` }
Submarine is a specification for a Submarine resource
func (*Submarine) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Submarine.
func (*Submarine) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Submarine) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type SubmarineDatabaseSpec ¶
type SubmarineDatabaseSpec struct { Image string `json:"image"` StorageSize string `json:"storageSize"` MysqlRootPasswordSecret string `json:"mysqlRootPasswordSecret"` }
func (*SubmarineDatabaseSpec) DeepCopy ¶
func (in *SubmarineDatabaseSpec) DeepCopy() *SubmarineDatabaseSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SubmarineDatabaseSpec.
func (*SubmarineDatabaseSpec) DeepCopyInto ¶
func (in *SubmarineDatabaseSpec) DeepCopyInto(out *SubmarineDatabaseSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SubmarineList ¶
type SubmarineList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []Submarine `json:"items"` }
SubmarineList is a list of Submarine resources
func (*SubmarineList) DeepCopy ¶
func (in *SubmarineList) DeepCopy() *SubmarineList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SubmarineList.
func (*SubmarineList) DeepCopyInto ¶
func (in *SubmarineList) DeepCopyInto(out *SubmarineList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SubmarineList) DeepCopyObject ¶
func (in *SubmarineList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type SubmarineMinioSpec ¶
type SubmarineMinioSpec struct { Enabled *bool `json:"enabled"` StorageSize string `json:"storageSize"` }
func (*SubmarineMinioSpec) DeepCopy ¶
func (in *SubmarineMinioSpec) DeepCopy() *SubmarineMinioSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SubmarineMinioSpec.
func (*SubmarineMinioSpec) DeepCopyInto ¶
func (in *SubmarineMinioSpec) DeepCopyInto(out *SubmarineMinioSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SubmarineMlflowSpec ¶
type SubmarineMlflowSpec struct { Enabled *bool `json:"enabled"` StorageSize string `json:"storageSize"` }
func (*SubmarineMlflowSpec) DeepCopy ¶
func (in *SubmarineMlflowSpec) DeepCopy() *SubmarineMlflowSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SubmarineMlflowSpec.
func (*SubmarineMlflowSpec) DeepCopyInto ¶
func (in *SubmarineMlflowSpec) DeepCopyInto(out *SubmarineMlflowSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SubmarineServerSpec ¶
func (*SubmarineServerSpec) DeepCopy ¶
func (in *SubmarineServerSpec) DeepCopy() *SubmarineServerSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SubmarineServerSpec.
func (*SubmarineServerSpec) DeepCopyInto ¶
func (in *SubmarineServerSpec) DeepCopyInto(out *SubmarineServerSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SubmarineSpec ¶
type SubmarineSpec struct { Version string `json:"version"` Server *SubmarineServerSpec `json:"server"` Database *SubmarineDatabaseSpec `json:"database"` Tensorboard *SubmarineTensorboardSpec `json:"tensorboard"` Mlflow *SubmarineMlflowSpec `json:"mlflow"` Minio *SubmarineMinioSpec `json:"minio"` }
SubmarineSpec is the spec for a Submarine resource
func (*SubmarineSpec) DeepCopy ¶
func (in *SubmarineSpec) DeepCopy() *SubmarineSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SubmarineSpec.
func (*SubmarineSpec) DeepCopyInto ¶
func (in *SubmarineSpec) DeepCopyInto(out *SubmarineSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SubmarineState ¶
type SubmarineState struct { State SubmarineStateType `json:"state"` ErrorMessage string `json:"errorMessage,omitempty"` }
SubmarineState tells the current state of the submarine and an error message in case of failures.
func (*SubmarineState) DeepCopy ¶
func (in *SubmarineState) DeepCopy() *SubmarineState
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SubmarineState.
func (*SubmarineState) DeepCopyInto ¶
func (in *SubmarineState) DeepCopyInto(out *SubmarineState)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SubmarineStateType ¶
type SubmarineStateType string
SubmarineStateType represents the type of the current state of a submarine.
const ( NewState SubmarineStateType = "" CreatingState SubmarineStateType = "CREATING" RunningState SubmarineStateType = "RUNNING" FailedState SubmarineStateType = "FAILED" )
Different states a submarine may have.
type SubmarineStatus ¶
type SubmarineStatus struct { AvailableServerReplicas int32 `json:"availableServerReplicas"` AvailableDatabaseReplicas int32 `json:"availableDatabaseReplicas"` // SubmarineState tells the overall submarine state. SubmarineState `json:"submarineState,omitempty"` }
SubmarineStatus is the status for a Submarine resource
func (*SubmarineStatus) DeepCopy ¶
func (in *SubmarineStatus) DeepCopy() *SubmarineStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SubmarineStatus.
func (*SubmarineStatus) DeepCopyInto ¶
func (in *SubmarineStatus) DeepCopyInto(out *SubmarineStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SubmarineTensorboardSpec ¶
type SubmarineTensorboardSpec struct { Enabled *bool `json:"enabled"` StorageSize string `json:"storageSize"` }
func (*SubmarineTensorboardSpec) DeepCopy ¶
func (in *SubmarineTensorboardSpec) DeepCopy() *SubmarineTensorboardSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SubmarineTensorboardSpec.
func (*SubmarineTensorboardSpec) DeepCopyInto ¶
func (in *SubmarineTensorboardSpec) DeepCopyInto(out *SubmarineTensorboardSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.