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 (d Deployment) Get(ctx context.Context, options metav1.GetOptions) (*appsv1.Deployment, error)
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) LogResource ¶
Click to show internal directories.
Click to hide internal directories.