Documentation ¶
Index ¶
- func AddLabelFailErrMocked(t *testing.T, labelIn *types.Label, ...) []*types.LabeledResource
- func AddLabelFailJSONMocked(t *testing.T, labelIn *types.Label, ...) []*types.LabeledResource
- func AddLabelFailStatusMocked(t *testing.T, labelIn *types.Label, ...) []*types.LabeledResource
- func AddLabelMocked(t *testing.T, labelIn *types.Label, ...) []*types.LabeledResource
- func CreateLabelFailErrMocked(t *testing.T, labelIn *types.Label) *types.Label
- func CreateLabelFailJSONMocked(t *testing.T, labelIn *types.Label) *types.Label
- func CreateLabelFailStatusMocked(t *testing.T, labelIn *types.Label) *types.Label
- func CreateLabelMocked(t *testing.T, labelIn *types.Label) *types.Label
- func GetLabelListFailErrMocked(t *testing.T, labelsIn []*types.Label) []*types.Label
- func GetLabelListFailJSONMocked(t *testing.T, labelsIn []*types.Label) []*types.Label
- func GetLabelListFailStatusMocked(t *testing.T, labelsIn []*types.Label) []*types.Label
- func GetLabelListMocked(t *testing.T, labelsIn []*types.Label) []*types.Label
- func GetLabelListMockedWithNamespace(t *testing.T, labelsIn []*types.Label) []*types.Label
- func RemoveLabelFailErrMocked(t *testing.T, labelIn *types.Label)
- func RemoveLabelFailStatusMocked(t *testing.T, labelIn *types.Label)
- func RemoveLabelMocked(t *testing.T, labelIn *types.Label)
- type LabelService
- func (lbl *LabelService) AddLabel(labelVector *map[string]interface{}, labelID string) (labeledResources []*types.LabeledResource, err error)
- func (lbl *LabelService) CreateLabel(labelVector *map[string]interface{}) (label *types.Label, err error)
- func (lbl *LabelService) GetLabelList() (labels []*types.Label, err error)
- func (lbl *LabelService) RemoveLabel(labelID string, resourceType string, resourceID string) error
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 ¶
CreateLabelFailErrMocked test mocked function
func CreateLabelFailJSONMocked ¶
CreateLabelFailJSONMocked test mocked function
func CreateLabelFailStatusMocked ¶
CreateLabelFailStatusMocked test mocked function
func CreateLabelMocked ¶
CreateLabelMocked test mocked function
func GetLabelListFailErrMocked ¶
GetLabelListFailErrMocked test mocked function
func GetLabelListFailJSONMocked ¶
GetLabelListFailJSONMocked test mocked function
func GetLabelListFailStatusMocked ¶
GetLabelListFailStatusMocked test mocked function
func GetLabelListMocked ¶
GetLabelListMocked test mocked function
func GetLabelListMockedWithNamespace ¶
GetLabelListMockedWithNamespace test mocked function
func RemoveLabelFailErrMocked ¶
RemoveLabelFailErrMocked test mocked function
func RemoveLabelFailStatusMocked ¶
RemoveLabelFailStatusMocked 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