cascade

package
v0.22.1 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2021 License: Apache-2.0, BSD-3-Clause, MIT Imports: 7 Imported by: 0

Documentation

Overview

Package types contains the Service Manager cascade query

Package types contains the Service Manager web entities

Package types contains the Service Manager web entities

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cascade

type Cascade interface {
	GetChildrenCriterion() ChildrenCriterion
}

func GetCascadeObject

func GetCascadeObject(ctx context.Context, object types.Object) (Cascade, bool)

type CascadeChildren

type CascadeChildren = map[types.ObjectType]types.ObjectList

type CascadeErrors

type CascadeErrors struct {
	Errors []*Error `json:"cascade_errors"`
}

func (*CascadeErrors) Add

func (c *CascadeErrors) Add(e *Error)

type CascadedOperations

type CascadedOperations struct {
	AllOperationsCount         int
	FailedOperations           []*types.Operation
	InProgressOperations       []*types.Operation
	SucceededOperations        []*types.Operation
	OrphanMitigationOperations []*types.Operation
	PendingOperations          []*types.Operation
}

type ChildrenCriterion

type ChildrenCriterion = map[types.ObjectType]CriterionDisjunction

type CriterionConjunction added in v0.19.5

type CriterionConjunction = []query.Criterion

CriterionConjunction - represents AND logic gate: <criteria> AND <criteria> (...AND <criteria>)

type CriterionDisjunction added in v0.19.5

type CriterionDisjunction = []CriterionConjunction

CriterionDisjunction - represents OR logic gate: <criteria> OR <criteria> (...OR <criteria>)

type DuplicatesCleaner

type DuplicatesCleaner interface {
	CleanDuplicates(children CascadeChildren)
}

type Error

type Error struct {
	ParentType   types.ObjectType `json:"parent_type,omitempty"`
	ParentID     string           `json:"parent_id,omitempty"`
	ResourceType types.ObjectType `json:"resource_type"`
	ResourceID   string           `json:"resource_id"`
	Message      json.RawMessage  `json:"message"`
}

type ParentInstanceLabelKeys added in v0.18.2

type ParentInstanceLabelKeys struct{}

key for configurable hierarchies

type PlatformCascade

type PlatformCascade struct {
	*types.Platform
}

func (*PlatformCascade) GetChildrenCriterion

func (p *PlatformCascade) GetChildrenCriterion() ChildrenCriterion

type ServiceBrokerCascade

type ServiceBrokerCascade struct {
	*types.ServiceBroker
}

func (*ServiceBrokerCascade) GetChildrenCriterion

func (sb *ServiceBrokerCascade) GetChildrenCriterion() ChildrenCriterion

type ServiceInstanceCascade

type ServiceInstanceCascade struct {
	*types.ServiceInstance
	// contains filtered or unexported fields
}

func (*ServiceInstanceCascade) GetChildrenCriterion

func (si *ServiceInstanceCascade) GetChildrenCriterion() ChildrenCriterion

type TenantCascade

type TenantCascade struct {
	*types.Tenant
}

func (*TenantCascade) CleanDuplicates

func (tc *TenantCascade) CleanDuplicates(children CascadeChildren)

func (*TenantCascade) GetChildrenCriterion

func (tc *TenantCascade) GetChildrenCriterion() ChildrenCriterion

Jump to

Keyboard shortcuts

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