deployer

package
v0.0.0-...-765e33d Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrUUIDGeneration             = &Error{Code: "UUIDGenerationError", Message: "Error generating UUID"}
	ErrGettingDispatcherPodConfig = &Error{Code: "GettingDispatcherPodConfigError", Message: "Error getting dispatcher pod config"}
	ErrCreateDispatcherPod        = &Error{Code: "CreateDispatcherPodError", Message: "Error creating dispatcher pod"}
	ErrGetUserHomeDir             = &Error{Code: "GetUserHomeDirError", Message: "Error getting user home directory"}
	ErrBuildingKubeconfig         = &Error{Code: "BuildingKubeconfigError", Message: "Error building kubeconfig"}
	ErrGettingContainerLogs       = &Error{Code: "GettingContainerLogsError", Message: "Error getting container logs"}
	ErrAddFilesToPod              = &Error{Code: "AddFilesToPodError", Message: "Error adding files to pod"}
)

Functions

func GetDefaultRegistryImageName

func GetDefaultRegistryImageName(imageName string) string

TODO: improve this function

func KubeClientset

func KubeClientset(kubeconfig string) (*kubernetes.Clientset, error)

Types

type Deployer

type Deployer struct {
	Clientset kubernetes.Interface
	Namespace string
	// contains filtered or unexported fields
}

func (*Deployer) Build

func (d *Deployer) Build(ctx context.Context, contextDir string) (logs string, err error)

func (*Deployer) Deploy

func (d *Deployer) Deploy(ctx context.Context) (logs string, err error)

func (*Deployer) ImageName

func (d *Deployer) ImageName() string

func (*Deployer) PodName

func (d *Deployer) PodName() string

type Error

type Error struct {
	Code    string
	Message string
	Err     error
}

func (*Error) Error

func (e *Error) Error() string

func (*Error) Wrap

func (e *Error) Wrap(err error) error

Jump to

Keyboard shortcuts

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