Documentation ¶
Index ¶
- func ChannelServer(location string, statusCode int) *httptest.Server
- func Errorf(format string, args ...interface{})
- func Failf(format string, args ...interface{})
- func FailfWithOffset(offset int, format string, args ...interface{})
- func Infof(format string, args ...interface{})
- func Logf(level, format string, args ...interface{})
- func Warnf(format string, args ...interface{})
- type Client
- func (c *Client) AfterEach(ctx context.Context)
- func (c *Client) BeforeEach(ctx context.Context)
- func (c *Client) CreatePlan(plan *upgradeapiv1.Plan) (*upgradeapiv1.Plan, error)
- func (c *Client) CreateSecret(secret *corev1.Secret) (*corev1.Secret, error)
- func (c *Client) DeletePlan(name string, options metav1.DeleteOptions) error
- func (c *Client) DeletePlans(options metav1.DeleteOptions, listOpts metav1.ListOptions) error
- func (c *Client) GetPlan(name string, options metav1.GetOptions) (*upgradeapiv1.Plan, error)
- func (c *Client) ListPlans(options metav1.ListOptions) (*upgradeapiv1.PlanList, error)
- func (c *Client) NewPlan(name, image string, command []string, args ...string) *upgradeapiv1.Plan
- func (c *Client) UpdatePlan(plan *upgradeapiv1.Plan) (*upgradeapiv1.Plan, error)
- func (c *Client) UpdatePlanStatus(plan *upgradeapiv1.Plan) (*upgradeapiv1.Plan, error)
- func (c *Client) UpdateSecret(secret *corev1.Secret) (*corev1.Secret, error)
- func (c *Client) WaitForPlanCondition(name string, cond condition.Cond, timeout time.Duration) (plan *upgradeapiv1.Plan, err error)
- func (c *Client) WaitForPlanJobs(plan *upgradeapiv1.Plan, count int, timeout time.Duration) (jobs []batchv1.Job, err error)
- func (c *Client) WatchPlans(options metav1.ListOptions) (watch.Interface, error)
- type Option
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FailfWithOffset ¶
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").
Types ¶
type Client ¶
type Client struct { framework.Framework UpgradeClientSet *upgradecln.Clientset // contains filtered or unexported fields }
func (*Client) BeforeEach ¶
func (*Client) CreatePlan ¶
func (c *Client) CreatePlan(plan *upgradeapiv1.Plan) (*upgradeapiv1.Plan, error)
func (*Client) CreateSecret ¶ added in v0.13.2
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) 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) UpdateSecret ¶ added in v0.13.2
func (*Client) WaitForPlanCondition ¶
func (*Client) WaitForPlanJobs ¶
func (*Client) WatchPlans ¶
Click to show internal directories.
Click to hide internal directories.