framework

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2023 License: Apache-2.0 Imports: 36 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChannelServer

func ChannelServer(location string, statusCode int) *httptest.Server

func Errorf

func Errorf(format string, args ...interface{})

func Failf

func Failf(format string, args ...interface{})

Failf logs the fail info.

func FailfWithOffset

func FailfWithOffset(offset int, format string, args ...interface{})

FailfWithOffset calls "Fail" and logs the error at "offset" levels above its caller (for example, for call chain f -> g -> FailfWithOffset(1, ...) error would be logged for "f").

func Infof

func Infof(format string, args ...interface{})

func Logf

func Logf(level, format string, args ...interface{})

Logf logs the info.

func Warnf

func Warnf(format string, args ...interface{})

Types

type Client

type Client struct {
	framework.Framework

	UpgradeClientSet *upgradecln.Clientset
	// contains filtered or unexported fields
}

func New

func New(name string, opt ...Option) *Client

func (*Client) AfterEach

func (c *Client) AfterEach()

func (*Client) BeforeEach

func (c *Client) BeforeEach()

func (*Client) CreatePlan

func (c *Client) CreatePlan(plan *upgradeapiv1.Plan) (*upgradeapiv1.Plan, error)

func (*Client) DeletePlan

func (c *Client) DeletePlan(name string, options metav1.DeleteOptions) error

func (*Client) DeletePlans

func (c *Client) DeletePlans(options metav1.DeleteOptions, listOpts metav1.ListOptions) error

func (*Client) GetPlan

func (c *Client) GetPlan(name string, options metav1.GetOptions) (*upgradeapiv1.Plan, error)

func (*Client) ListPlans

func (c *Client) ListPlans(options metav1.ListOptions) (*upgradeapiv1.PlanList, error)

func (*Client) NewPlan

func (c *Client) NewPlan(name, image string, command []string, args ...string) *upgradeapiv1.Plan

func (*Client) UpdatePlan

func (c *Client) UpdatePlan(plan *upgradeapiv1.Plan) (*upgradeapiv1.Plan, error)

func (*Client) UpdatePlanStatus

func (c *Client) UpdatePlanStatus(plan *upgradeapiv1.Plan) (*upgradeapiv1.Plan, error)

func (*Client) WaitForPlanCondition

func (c *Client) WaitForPlanCondition(name string, cond condition.Cond, timeout time.Duration) (plan *upgradeapiv1.Plan, err error)

func (*Client) WaitForPlanJobs

func (c *Client) WaitForPlanJobs(plan *upgradeapiv1.Plan, count int, timeout time.Duration) (jobs []batchv1.Job, err error)

func (*Client) WatchPlans

func (c *Client) WatchPlans(options metav1.ListOptions) (watch.Interface, error)

type Option

type Option func(*Options)

type Options

type Options struct {
	framework.Options
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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