kubernetes

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2021 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Overview

Package kubernetes provides the ability for Vela to integrate with Kubernetes as a runtime environment.

Usage:

import "github.com/go-vela/pkg-runtime/runtime/kubernetes"

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(opts ...ClientOpt) (*client, error)

New returns an Engine implementation that integrates with a Kubernetes runtime.

nolint: golint // ignore returning unexported client

func NewMock

func NewMock(_pod *v1.Pod, opts ...ClientOpt) (*client, error)

NewMock returns an Engine implementation that integrates with a Kubernetes runtime.

This function is intended for running tests only.

nolint: golint // ignore returning unexported client

Types

type ClientOpt added in v0.8.0

type ClientOpt func(*client) error

ClientOpt represents a configuration option to initialize the runtime client.

func WithConfigFile added in v0.8.0

func WithConfigFile(file string) ClientOpt

WithConfigFile sets the Kubernetes config file in the runtime client.

func WithHostVolumes added in v0.8.0

func WithHostVolumes(volumes []string) ClientOpt

WithHostVolumes sets the Kubernetes host volumes in the runtime client.

func WithNamespace added in v0.8.0

func WithNamespace(namespace string) ClientOpt

WithNamespace sets the Kubernetes namespace in the runtime client.

func WithPrivilegedImages added in v0.8.0

func WithPrivilegedImages(images []string) ClientOpt

WithPrivilegedImages sets the Kubernetes privileged images in the runtime client.

Jump to

Keyboard shortcuts

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