labels

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddLabelFailErrMocked

func AddLabelFailErrMocked(t *testing.T, labelIn *types.Label, labeledResourcesOut []types.LabeledResource) []types.LabeledResource

AddLabelFailErrMocked test mocked function

func AddLabelFailJSONMocked

func AddLabelFailJSONMocked(t *testing.T, labelIn *types.Label, labeledResourcesOut []types.LabeledResource) []types.LabeledResource

AddLabelFailJSONMocked test mocked function

func AddLabelFailStatusMocked

func AddLabelFailStatusMocked(t *testing.T, labelIn *types.Label, labeledResourcesOut []types.LabeledResource) []types.LabeledResource

AddLabelFailStatusMocked test mocked function

func AddLabelMocked

func AddLabelMocked(t *testing.T, labelIn *types.Label, labeledResourcesOut []types.LabeledResource) []types.LabeledResource

AddLabelMocked test mocked function

func CreateLabelFailErrMocked

func CreateLabelFailErrMocked(t *testing.T, labelIn *types.Label) *types.Label

CreateLabelFailErrMocked test mocked function

func CreateLabelFailJSONMocked

func CreateLabelFailJSONMocked(t *testing.T, labelIn *types.Label) *types.Label

CreateLabelFailJSONMocked test mocked function

func CreateLabelFailStatusMocked

func CreateLabelFailStatusMocked(t *testing.T, labelIn *types.Label) *types.Label

CreateLabelFailStatusMocked test mocked function

func CreateLabelMocked

func CreateLabelMocked(t *testing.T, labelIn *types.Label) *types.Label

CreateLabelMocked test mocked function

func GetLabelListFailErrMocked

func GetLabelListFailErrMocked(t *testing.T, labelsIn *[]types.Label) *[]types.Label

GetLabelListFailErrMocked test mocked function

func GetLabelListFailJSONMocked

func GetLabelListFailJSONMocked(t *testing.T, labelsIn *[]types.Label) *[]types.Label

GetLabelListFailJSONMocked test mocked function

func GetLabelListFailStatusMocked

func GetLabelListFailStatusMocked(t *testing.T, labelsIn *[]types.Label) *[]types.Label

GetLabelListFailStatusMocked test mocked function

func GetLabelListMocked

func GetLabelListMocked(t *testing.T, labelsIn *[]types.Label) *[]types.Label

GetLabelListMocked test mocked function

func GetLabelListMockedWithNamespace

func GetLabelListMockedWithNamespace(t *testing.T, labelsIn *[]types.Label) *[]types.Label

GetLabelListMockedWithNamespace test mocked function

func RemoveLabelFailErrMocked

func RemoveLabelFailErrMocked(t *testing.T, labelIn *types.Label)

RemoveLabelFailErrMocked test mocked function

func RemoveLabelFailStatusMocked

func RemoveLabelFailStatusMocked(t *testing.T, labelIn *types.Label)

RemoveLabelFailStatusMocked test mocked function

func RemoveLabelMocked

func RemoveLabelMocked(t *testing.T, labelIn *types.Label)

RemoveLabelMocked test mocked function

Types

type LabelService

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

LabelService manages polling operations

func NewLabelService

func NewLabelService(concertoService utils.ConcertoService) (*LabelService, error)

NewLabelService returns a Concerto labels service

func (*LabelService) AddLabel

func (lbl *LabelService) AddLabel(labelVector *map[string]interface{}, labelID string) (labeledResources []types.LabeledResource, err error)

AddLabel assigns a single label from a single labelable resource

func (*LabelService) CreateLabel

func (lbl *LabelService) CreateLabel(labelVector *map[string]interface{}) (label *types.Label, err error)

CreateLabel creates a label

func (*LabelService) GetLabelList

func (lbl *LabelService) GetLabelList() (labels []types.Label, err error)

GetLabelList returns the list of labels as an array of Label

func (*LabelService) RemoveLabel

func (lbl *LabelService) RemoveLabel(labelID string, resourceType string, resourceID string) error

RemoveLabel de-assigns a single label from a single labelable resource

Jump to

Keyboard shortcuts

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