obj

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type Checkout

type Checkout struct {
	Key    client.ObjectKey
	Object *pvpoolv1alpha1.Checkout
}

func NewCheckout

func NewCheckout(key client.ObjectKey) *Checkout

func NewCheckoutFromObject

func NewCheckoutFromObject(obj *pvpoolv1alpha1.Checkout) *Checkout

func (*Checkout) Delete

func (c *Checkout) Delete(ctx context.Context, cl client.Client, opts ...lifecycle.DeleteOption) (bool, error)

func (*Checkout) Load

func (c *Checkout) Load(ctx context.Context, cl client.Client) (bool, error)

func (*Checkout) Own

func (c *Checkout) Own(ctx context.Context, other lifecycle.Ownable) error

func (*Checkout) Persist

func (c *Checkout) Persist(ctx context.Context, cl client.Client) error

func (*Checkout) PersistStatus

func (c *Checkout) PersistStatus(ctx context.Context, cl client.Client) error

type Pool

type Pool struct {
	Key    client.ObjectKey
	Object *pvpoolv1alpha1.Pool
}

func NewPool

func NewPool(key client.ObjectKey) *Pool

func NewPoolFromObject

func NewPoolFromObject(obj *pvpoolv1alpha1.Pool) *Pool

func (*Pool) AddFinalizer

func (p *Pool) AddFinalizer(ctx context.Context, name string) bool

func (*Pool) Delete

func (p *Pool) Delete(ctx context.Context, cl client.Client, opts ...lifecycle.DeleteOption) (bool, error)

func (*Pool) Finalizing

func (p *Pool) Finalizing() bool

func (*Pool) Load

func (p *Pool) Load(ctx context.Context, cl client.Client) (bool, error)

func (*Pool) Own

func (p *Pool) Own(ctx context.Context, other lifecycle.Ownable) error

func (*Pool) Persist

func (p *Pool) Persist(ctx context.Context, cl client.Client) error

func (*Pool) PersistStatus

func (p *Pool) PersistStatus(ctx context.Context, cl client.Client) error

func (*Pool) RemoveFinalizer

func (p *Pool) RemoveFinalizer(ctx context.Context, name string) bool

Jump to

Keyboard shortcuts

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