app

package
v1.0.2-0...-84e4af3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewApplication

func NewApplication(stepName, name string, image string, port int32, appCli appsCli.DeploymentInterface, coreCli coreclient.ServiceInterface, c utils.Container) executor.Step

Types

type Application

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

Application consist of deployment and service

func (Application) Cleanup

func (a Application) Cleanup() error

func (Application) Name

func (a Application) Name() string

func (Application) OnError

func (a Application) OnError() error

func (Application) Run

func (a Application) Run() error

type Deployment

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

func NewDeployment

func NewDeployment(name, namespace, image string, port int32, apps appsclient.DeploymentInterface, log *logrus.Entry) Deployment

func (Deployment) Create

func (d Deployment) Create() error

func (Deployment) Delete

func (d Deployment) Delete(ctx context.Context, options metav1.DeleteOptions) error

func (Deployment) Get

func (Deployment) LogResource

func (d Deployment) LogResource() error

type Service

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

func NewService

func NewService(name, namespace string, port int32, coreCli coreclient.ServiceInterface, log *logrus.Entry) Service

func (Service) Create

func (s Service) Create() error

func (Service) Delete

func (s Service) Delete(ctx context.Context, options metav1.DeleteOptions) error

func (Service) Get

func (s Service) Get(ctx context.Context, options metav1.GetOptions) (*corev1.Service, error)

func (Service) LogResource

func (s Service) LogResource() error

Jump to

Keyboard shortcuts

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