client

package
v1.31.0 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PVC       = "persistentVolumeClaim"
	EMPTYDIR  = "emptyDir"
	HOSTPATH  = "hostPath"
	CONFIGMAP = "configMap"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ConvertBuild

type ConvertBuild string
const (
	LOCAL        ConvertBuild = "local"
	BUILD_CONFIG ConvertBuild = "build-config"
	NONE         ConvertBuild = "none"
)

type ConvertOptions

type ConvertOptions struct {
	Build                  *string
	PushImage              bool
	PushImageRegistry      string
	GenerateJson           bool
	ToStdout               bool
	OutFile                string
	Replicas               *int
	VolumeType             *string
	PvcRequestSize         string
	WithKomposeAnnotations *bool
	InputFiles             []string
	Profiles               []string
	Provider
	GenerateNetworkPolicies bool
}

type Kompose

type Kompose struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(opts ...Opt) (*Kompose, error)

func (*Kompose) Convert

func (k *Kompose) Convert(options ConvertOptions) ([]runtime.Object, error)

type Kubernetes

type Kubernetes struct {
	Provider
	Chart              bool
	Controller         *string
	MultiContainerMode bool
	ServiceGroupMode   *string
	ServiceGroupName   string
	SecretsAsFiles     bool
}

type KubernetesController

type KubernetesController string
const (
	DEPLOYMENT             KubernetesController = "deployment"
	DAEMONSET              KubernetesController = "daemonSet"
	REPLICATION_CONTROLLER KubernetesController = "replicationController"
)

type Openshift

type Openshift struct {
	Provider
	DeploymentConfig   bool
	InsecureRepository bool
	BuildRepo          string
	BuildBranch        string
}

type Opt

type Opt func(*Kompose) error

Opt is a configuration option to initialize a client

func WithErrorOnWarning

func WithErrorOnWarning() Opt

func WithSuppressWarnings

func WithSuppressWarnings() Opt

func WithVerboseOutput

func WithVerboseOutput() Opt

type Provider

type Provider interface{}

type ServiceGroupMode

type ServiceGroupMode string
const (
	LABEL  ServiceGroupMode = "label"
	VOLUME ServiceGroupMode = "volume"
)

type VolumeType

type VolumeType string

Jump to

Keyboard shortcuts

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