client

package
v1.39.0 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2026 License: Apache-2.0 Imports: 4 Imported by: 1 module, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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