skuber
package skuber
- Alphabetic
- By Inheritance
- skuber
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
- case class APIVersions(kind: String, versions: List[String]) extends Product with Serializable
- case class ConfigMap(kind: String = "ConfigMap", apiVersion: String = v1, metadata: ObjectMeta, data: Map[String, String] = Map()) extends ObjectResource with Product with Serializable
- type ConfigMapList = ListResource[ConfigMap]
- case class Container(name: String, image: String, command: List[String] = List(), args: List[String] = List(), workingDir: Option[String] = None, ports: List[Port] = List(), env: List[EnvVar] = List(), resources: Option[Requirements] = None, volumeMounts: List[Mount] = List(), livenessProbe: Option[Probe] = None, readinessProbe: Option[Probe] = None, lifecycle: Option[Lifecycle] = None, terminationMessagePath: Option[String] = None, terminationMessagePolicy: Option[Container.TerminationMessagePolicy.Value] = None, imagePullPolicy: Option[Container.PullPolicy.Value] = None, securityContext: Option[SecurityContext] = None, envFrom: List[EnvFromSource] = Nil, stdin: Option[Boolean] = None, stdinOnce: Option[Boolean] = None, tty: Option[Boolean] = None, volumeDevices: List[Device] = Nil, startupProbe: Option[Probe] = None) extends Limitable with Product with Serializable
- case class CoreResourceSpecification(group: Option[String] = None, version: String = "v1", scope: ResourceSpecification.Scope.Value, names: Names, subresources: Option[Subresources] = None) extends ResourceSpecification with Product with Serializable
- case class CustomResource[Sp, St](kind: String, apiVersion: String, metadata: ObjectMeta, spec: Sp, status: Option[St]) extends ObjectResource with Product with Serializable
- case class DeleteOptions(apiVersion: String = "v1", kind: String = "DeleteOptions", gracePeriodSeconds: Option[Int] = None, preconditions: Option[Preconditions] = None, propagationPolicy: Option[DeletePropagation.Value] = None) extends Product with Serializable
- case class Endpoints(kind: String = "Endpoints", apiVersion: String = v1, metadata: ObjectMeta, subsets: List[Subset] = Nil) extends ObjectResource with Product with Serializable
- type EndpointsList = ListResource[Endpoints]
- case class EnvFromSource(prefix: Option[String] = None, source: EnvSource) extends Product with Serializable
- case class EnvVar(name: String, value: Value = "") extends Product with Serializable
- case class Event(kind: String = "Event", apiVersion: String = v1, metadata: ObjectMeta, involvedObject: ObjectReference, reason: Option[String] = None, message: Option[String] = None, source: Option[Source] = None, firstTimestamp: Option[Timestamp] = None, lastTimestamp: Option[Timestamp] = None, count: Option[Int] = None, type: Option[String] = None) extends ObjectResource with Product with Serializable
- type EventList = ListResource[Event]
- case class ExecAction(command: List[String]) extends Handler with Product with Serializable
- type Finalizer = String
- case class HTTPGetAction(port: NameablePort, host: String = "", path: String = "", schema: String = "HTTP") extends Handler with Product with Serializable
- sealed trait Handler extends AnyRef
- trait HasStatusSubresource[O <: ObjectResource] extends AnyRef
- type IntOrString = Either[Int, String]
- type K8SException = skuber.api.client.K8SException
- type K8SRequestContext = KubernetesClient
- type K8SWatchEvent[I <: ObjectResource] = WatchEvent[I]
- sealed abstract class KList[K <: KListItem] extends TypeMeta
- type KListItem = ObjectResource
- case class LabelSelector(requirements: Requirement*) extends Product with Serializable
- case class Lifecycle(postStart: Option[Handler] = None, preStop: Option[Handler] = None) extends Product with Serializable
- case class LimitRange(kind: String = "LimitRange", apiVersion: String = v1, metadata: ObjectMeta = ObjectMeta(), spec: Option[Spec] = None) extends ObjectResource with Product with Serializable
- type LimitRangeList = ListResource[LimitRange]
- trait Limitable extends AnyRef
- case class ListMeta(selfLink: String = "", resourceVersion: String = "", continue: Option[String] = None) extends Product with Serializable
- case class ListOptions(labelSelector: Option[LabelSelector] = None, fieldSelector: Option[String] = None, includeUninitialized: Option[Boolean] = None, resourceVersion: Option[String] = None, timeoutSeconds: Option[Long] = None, limit: Option[Long] = None, continue: Option[String] = None, watch: Option[Boolean] = None) extends Product with Serializable
- case class ListResource[K <: KListItem](apiVersion: String, kind: String, metadata: Option[ListMeta], items: List[K]) extends KList[K] with Product with Serializable
- case class LocalObjectReference(name: String) extends Product with Serializable
- type NameablePort = Either[Int, String]
- case class Namespace(kind: String = "Namespace", apiVersion: String = v1, metadata: ObjectMeta, spec: Option[Spec] = None, status: Option[Status] = None) extends ObjectResource with Product with Serializable
- type NamespaceList = ListResource[Namespace]
- case class Node(kind: String = "Node", apiVersion: String = v1, metadata: ObjectMeta, spec: Option[Spec] = None, status: Option[Status] = None) extends ObjectResource with Product with Serializable
- type NodeList = ListResource[Node]
-
case class
NonCoreResourceSpecification(apiGroup: String, version: Option[String], versions: List[Version], scope: ResourceSpecification.Scope.Value, names: Names, subresources: Option[Subresources] = None) extends ResourceSpecification with Product with Serializable
NonCoreResourceSpecification is used to specify any resource types outside the core k8s API group, including custom resources
- trait ObjectEditor[O <: ObjectResource] extends AnyRef
- case class ObjectMeta(name: String = emptyS, generateName: String = emptyS, namespace: String = emptyS, uid: String = emptyS, selfLink: String = emptyS, resourceVersion: String = emptyS, creationTimestamp: Option[Timestamp] = None, deletionTimestamp: Option[Timestamp] = None, deletionGracePeriodSeconds: Option[Int] = None, labels: Map[String, String] = Map(), annotations: Map[String, String] = Map(), ownerReferences: List[OwnerReference] = Nil, generation: Int = 0, finalizers: Option[List[String]] = None, clusterName: Option[String] = None) extends Product with Serializable
- case class ObjectReference(kind: String = "", apiVersion: String = "", namespace: String = "", name: String = "", uid: String = "", resourceVersion: String = "", fieldPath: String = "") extends Product with Serializable
- abstract class ObjectResource extends TypeMeta
- case class OwnerReference(apiVersion: String, kind: String, name: String, uid: String, controller: Option[Boolean], blockOwnerDeletion: Option[Boolean]) extends Product with Serializable
- case class PersistentVolume(kind: String = "PersistentVolume", apiVersion: String = v1, metadata: ObjectMeta = ObjectMeta(), spec: Option[Spec] = None, status: Option[Status] = None) extends ObjectResource with Product with Serializable
- case class PersistentVolumeClaim(kind: String = "PersistentVolumeClaim", apiVersion: String = v1, metadata: ObjectMeta = ObjectMeta(), spec: Option[Spec] = None, status: Option[Status] = None) extends ObjectResource with Product with Serializable
- type PersistentVolumeClaimList = ListResource[PersistentVolumeClaim]
- type PersistentVolumeList = ListResource[PersistentVolume]
- type Phase = String
- case class Pod(kind: String = "Pod", apiVersion: String = v1, metadata: ObjectMeta, spec: Option[Spec] = None, status: Option[Status] = None) extends ObjectResource with Limitable with Product with Serializable
- type PodList = ListResource[Pod]
- case class PodSecurityContext(fsGroup: Option[Int] = None, runAsGroup: Option[Int] = None, runAsNonRoot: Option[Boolean] = None, runAsUser: Option[Int] = None, seLinuxOptions: Option[SELinuxOptions] = None, supplementalGroups: List[Int] = Nil, sysctls: List[Sysctl] = Nil) extends Product with Serializable
- type PodTemplateList = ListResource[Template]
- case class Preconditions(uid: String = "") extends Product with Serializable
- case class Probe(action: Handler, initialDelaySeconds: Int = 0, timeoutSeconds: Int = 0, periodSeconds: Option[Int] = None, successThreshold: Option[Int] = None, failureThreshold: Option[Int] = None) extends Product with Serializable
- case class ReplicationController(kind: String = "ReplicationController", apiVersion: String = v1, metadata: ObjectMeta = ObjectMeta(), spec: Option[Spec] = None, status: Option[Status] = None) extends ObjectResource with Product with Serializable
- type ReplicationControllerList = ListResource[ReplicationController]
- trait ResourceDefinition[T <: TypeMeta] extends AnyRef
- type ResourceQuotaList = ListResource[Quota]
- abstract class ResourceSpecification extends AnyRef
- case class Scale(kind: String = "Scale", apiVersion: String, metadata: ObjectMeta, spec: Spec = Scale.Spec(), status: Option[Status] = None) extends ObjectResource with Product with Serializable
- case class Secret(kind: String = "Secret", apiVersion: String = v1, metadata: ObjectMeta, data: Map[String, Array[Byte]] = Map(), type: String = "") extends ObjectResource with Product with Serializable
- type SecretList = ListResource[Secret]
- case class SecurityContext(allowPrivilegeEscalation: Option[Boolean] = None, capabilities: Option[Capabilities] = None, privileged: Option[Boolean] = None, readOnlyRootFilesystem: Option[Boolean] = None, runAsGroup: Option[Int] = None, runAsNonRoot: Option[Boolean] = None, runAsUser: Option[Int] = None, seLinuxOptions: Option[SELinuxOptions] = None) extends Product with Serializable
- case class Selector(matchLabels: Option[Map[String, String]] = None, matchExpressions: Option[List[MatchExpression]] = None) extends Product with Serializable
- case class Service(kind: String = "Service", apiVersion: String = v1, metadata: ObjectMeta, spec: Option[Spec] = None, status: Option[Status] = None) extends ObjectResource with Product with Serializable
- case class ServiceAccount(kind: String = "ServiceAccount", apiVersion: String = "v1", metadata: ObjectMeta, secrets: List[ObjectReference] = List(), imagePullSecrets: List[LocalObjectReference] = List()) extends ObjectResource with Product with Serializable
- type ServiceAccountList = ListResource[ServiceAccount]
- type ServiceList = ListResource[Service]
- case class TCPSocketAction(port: NameablePort) extends Handler with Product with Serializable
- type Timestamp = ZonedDateTime
- abstract class TypeMeta extends AnyRef
- case class Volume(name: String, source: Source) extends Product with Serializable
- case class WatchedEvent(eventType: WatchedEventType.Value, eventObject: ObjectResource) extends Product with Serializable
Value Members
- val K8SCluster: Cluster.type
- val K8SConfiguration: Configuration.type
- val K8SContext: Context.type
- def PodList(items: List[Pod]): ListResource[Pod]
- def ReplicationControllerList(items: List[ReplicationController]): ListResource[ReplicationController]
- def ServiceList(items: List[Service]): ListResource[Service]
- implicit def dblToQuantity(value: Double): Quantity
- val emptyB: Boolean
- def emptyL[T]: List[T]
- def emptyM[V]: Map[String, V]
- val emptyS: String
- implicit def fltToQuantity(value: Float): Quantity
- implicit def ianaNameToNameablePort(n: String): NameablePort
- implicit def intToQuantity(value: Int): Quantity
-
def
k8sInit(config: Configuration, appConfig: Config)(implicit actorSystem: ActorSystem): KubernetesClient
Initialise Skuber using the specified Kubernetes and application configuration.
-
def
k8sInit(appConfig: Config)(implicit actorSystem: ActorSystem): KubernetesClient
Initialise Skuber using default Kubernetes configuration and the specified application configuration.
-
def
k8sInit(config: Configuration)(implicit actorSystem: ActorSystem): KubernetesClient
Initialise Skuber using the specified Kubernetes configuration and default application configuration.
-
def
k8sInit(implicit actorSystem: ActorSystem): KubernetesClient
Initialise Skuber using default Kubernetes and application configuration.
- def listResourceFromItems[K <: KListItem](items: List[K])(implicit rd: ResourceDefinition[K]): ListResource[K]
- implicit def objResourceToRef(obj: ObjectResource): ObjectReference
- implicit def portNumToNameablePort(p: Int): NameablePort
- implicit def strToQuantity(value: String): Quantity
- implicit def toList[I <: KListItem](resource: KList[I]): List[I]
- def v1: String
- object ConfigMap extends Serializable
- object Container extends Serializable
- object CustomResource extends Serializable
- object DNSPolicy extends Enumeration
- object DeletePropagation extends Enumeration
- object Endpoints extends Serializable
- object EnvFromSource extends Serializable
- object EnvVar extends Serializable
- object Event extends Serializable
- object HTTPGetAction extends Serializable
- object LabelSelector extends Serializable
- object LimitRange extends Serializable
- object Namespace extends Serializable
- object Node extends Serializable
- object NonCoreResourceSpecification extends Serializable
- object PersistentVolume extends Serializable
- object PersistentVolumeClaim extends Serializable
- object Pod extends Serializable
- object Protocol extends Enumeration
- object ReplicationController extends Serializable
- object Resource
- object ResourceDefinition
- object ResourceSpecification
- object RestartPolicy extends Enumeration
- object Scale extends Serializable
- object Secret extends Serializable
- object Security
- object Service extends Serializable
- object ServiceAccount extends Serializable
- object Volume extends Serializable
- object WatchedEventType extends Enumeration