crd

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2018 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TypeDebugAttachment = iota
	TypeDebugRequest

	ActionAdd = iota
	ActionUpdate
	ActionDelete
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Action

type Action int

type CallbackInterface

type CallbackInterface interface {
	SyncCRDChanges(objtype ObjectType, action Action, obj interface{})
}

type Controller

type Controller struct {
	// contains filtered or unexported fields
}

func NewController

func NewController(
	crdClientset apiexts.Interface,
	squashclientset clientset.Interface,
	sqinformer informers.SharedInformerFactory,
	callback CallbackInterface) *Controller

func (*Controller) Run

func (c *Controller) Run(stopCh <-chan struct{}) error

type CrdClient

type CrdClient struct {
	// contains filtered or unexported fields
}

func NewCrdClient

func NewCrdClient(cfg *restclient.Config,
	callback CallbackInterface) (*CrdClient, error)

func (*CrdClient) CreateAttachment

func (c *CrdClient) CreateAttachment(r *models.DebugAttachment, failIfExist bool) (*models.DebugAttachment, error)

func (*CrdClient) CreateCRDs

func (c *CrdClient) CreateCRDs() error

func (*CrdClient) CreateRequest

func (c *CrdClient) CreateRequest(r *models.DebugRequest, failIfExist bool) (*models.DebugRequest, error)

func (*CrdClient) DeleteAttachment

func (c *CrdClient) DeleteAttachment(name string) error

func (*CrdClient) DeleteRequest

func (c *CrdClient) DeleteRequest(name string) error

func (*CrdClient) GetAttachment

func (c *CrdClient) GetAttachment(name string) (*models.DebugAttachment, error)

func (*CrdClient) GetRequest

func (c *CrdClient) GetRequest(name string) (*models.DebugRequest, error)

func (*CrdClient) ListAttachments

func (c *CrdClient) ListAttachments() ([]*models.DebugAttachment, error)

func (*CrdClient) ListRequests

func (c *CrdClient) ListRequests() ([]*models.DebugRequest, error)

func (*CrdClient) UpdateAttachment

func (c *CrdClient) UpdateAttachment(r *models.DebugAttachment) (*models.DebugAttachment, error)

func (*CrdClient) UpdateRequest

func (c *CrdClient) UpdateRequest(r *models.DebugRequest) (*models.DebugRequest, error)

type ObjectType

type ObjectType int

type WorkItem

type WorkItem struct {
	// contains filtered or unexported fields
}

func NewAttachmentItem

func NewAttachmentItem(action Action, obj interface{}) *WorkItem

func NewRequestItem

func NewRequestItem(action Action, obj interface{}) *WorkItem

Directories

Path Synopsis
apis
client

Jump to

Keyboard shortcuts

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