f2ocp

package
v0.2.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeploymentConfigCreate

type DeploymentConfigCreate struct {
	Namespace        *f2k8s.Namespace
	DeploymentConfig *osappsv1.DeploymentConfig

	Result *osappsv1.DeploymentConfig
	Ctx    context.Context
}

Executes a fully specified OCP DeploymentConfig

See DeploymentConfigCreateSimple for a simpler interface

func (*DeploymentConfigCreate) Execute

func (d *DeploymentConfigCreate) Execute() error

type DeploymentConfigCreateSimple

type DeploymentConfigCreateSimple struct {
	Name           string
	Namespace      *f2k8s.Namespace
	DeploymentOpts f2k8s.DeploymentOpts
	Wait           time.Duration // Waits for the deployment to be ready.  Otherwise, returns as soon as the create instruction has been issued.  If the wait lapses, return an error.

	Ctx context.Context

	Result *osappsv1.DeploymentConfig

	frame2.DefaultRunDealer
}

See DeploymentConfigCreate for a more complete interface

func (*DeploymentConfigCreateSimple) Execute

func (d *DeploymentConfigCreateSimple) Execute() error

TODO: remove this whole thing?

type DeploymentConfigUndeploy

type DeploymentConfigUndeploy struct {
	Name      string
	Namespace *f2k8s.Namespace
	Wait      time.Duration // Waits for the deployment to be gone.  Otherwise, returns as soon as the delete instruction has been issued.  If the wait lapses, return an error.

	Ctx context.Context
	frame2.DefaultRunDealer
}

func (*DeploymentConfigUndeploy) Execute

func (k *DeploymentConfigUndeploy) Execute() error

type DeploymentConfigValidate

type DeploymentConfigValidate struct {
	Namespace        *f2k8s.Namespace
	Name             string
	MinReadyReplicas int
	Ctx              context.Context

	Result *osappsv1.DeploymentConfig

	frame2.Log
	frame2.DefaultRunDealer
}

func (*DeploymentConfigValidate) Validate

func (d *DeploymentConfigValidate) Validate() error

type DeploymentConfigWait

type DeploymentConfigWait struct {
	Name      string
	Namespace *f2k8s.Namespace
	Ctx       context.Context

	// On this field, do not set the context.  Use the DeploymentConfigWait.Ctx,
	// instead, it will be used for the underlying Retry
	RetryOptions frame2.RetryOptions
	frame2.DefaultRunDealer
	*frame2.Log
}

Wait for the named deploymentconfig to be available. By default, it waits for up to two minutes, and ensures that the deployment reports as ready for at least 10s.

That behavior can be changed using the RetryOptions field. On that field, the Ctx field cannot be set; if a different timeout is desired, set it on the Action's Ctx itself, and it will be used for the RetryOptions.

func (DeploymentConfigWait) Validate

func (w DeploymentConfigWait) Validate() error

type OcCli

type OcCli struct {
	Args []string

	Namespace *f2k8s.Namespace

	// You can configure any aspects of the command configuration.  However,
	// the fields Command, Args and Shell from the exec.Cmd element will be
	// cleared before execution.
	Cmd f2general.Cmd

	frame2.DefaultRunDealer
}

func (OcCli) Execute

func (k OcCli) Execute() error

type RouteGet

type RouteGet struct {
	Namespace *f2k8s.Namespace

	Name string

	Ctx context.Context

	frame2.Log

	Result *v1.Route
}

func (*RouteGet) Validate

func (r *RouteGet) Validate() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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