Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SharepodDeployment ¶
type SharepodDeployment struct {
Service string `json:"service"`
Namespace string `json:"namespace,omitempty"`
// with the watchdog
//not sure about this now
EnvProcess string `json:"envProcess,omitempty"`
Constraints []string `json:"constraints,omitempty"`
// faas-provider or the gateway
Labels *map[string]string `json:"labels,omitempty"`
// faas-provider or the gateway
Annotations map[string]string `json:"annotations,omitempty"`
// mount-point.
ReadOnlyRootFilesystem bool `json:"readOnlyRootFilesystem,omitempty"`
}
TODO: not yet finalized, still need to check its validation
type SharepodRequirements ¶
type SharepodRequirements struct {
//Limits
}
type SharepodResources ¶
type SharepodResources struct {
}
SharepodResources is used to set GPU and memory limits and requests
type SharepodSpec ¶
type SharepodSpec struct {
//this is inside ObjectMeta
TerminationGracePeriodSeconds int `json:"terminationGracePeriodSeconds, omitempty"`
//use Containers instead, regarding how it was defined in KubeShare
Containers []corev1.Container `json:"containers,omitempty"`
Handler string `json:"handler,omitempty"`
Labels *map[string]string `json:"labels,omitempty"`
//Environment *map[string]string `json:"environment,omitempty"`
// +optional
Constraints []string `json:"constraints,omitempty"`
//Secrets []string `json:"secrets,omitempty"`
// +optional
//Limits *SharepodResources `json:"limits,omitempty"`
// +optional
//Requests *SharepodResources `json:"requests,omitempty"`
// +optional
ReadOnlyRootFilesystem bool `json:"readOnlyRootFilesystem"`
}
type SharepodStatus ¶ added in v0.1.18
type SharepodStatus struct {
Name string `json:"name"`
Namespace string `json:"namespace,omitempty"`
// faas-provider or the gateway
Labels *map[string]string `json:"labels,omitempty"`
// faas-provider or the gateway
Annotations *map[string]string `json:"annotations,omitempty"`
Limits *SharepodResources `json:"limits,omitempty"`
Requests *SharepodResources `json:"requests,omitempty"`
InvocationCount float64 `json:"invocationCount,omitempty"`
Replicas uint64 `json:"replicas,omitempty"`
// invocations as reported by the faas-provider
AvailableReplicas uint64 `json:"availableReplicas,omitempty"`
// data store for when the function or its container was created.
CreatedAt time.Time `json:"createdAt,omitempty"`
// functions' replicas. Divide by AvailableReplicas for an
// average value per replica.
Usage *SharepodUsage `json:"usage,omitempty"`
}
type SharepodUsage ¶ added in v0.1.18
type SharepodUsage struct {
}
Click to show internal directories.
Click to hide internal directories.