component_instance

package
v1.28.1 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2025 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ListComponentInstancesEventName  event.EventName = "ListComponentInstances"
	CreateComponentInstanceEventName event.EventName = "CreateComponentInstance"
	UpdateComponentInstanceEventName event.EventName = "UpdateComponentInstance"
	DeleteComponentInstanceEventName event.EventName = "DeleteComponentInstance"
	ListCcrnEventName                event.EventName = "ListCcrn"
	ListRegionsEventName             event.EventName = "ListRegions"
	ListClustersEventName            event.EventName = "ListClusters"
	ListNamespacesEventName          event.EventName = "ListNamespaces"
	ListDomainsEventName             event.EventName = "ListDomains"
	ListProjectsEventName            event.EventName = "ListProjects"
	ListPodsEventName                event.EventName = "ListPods"
	ListContainersEventName          event.EventName = "ListContainers"
	ListTypesEventName               event.EventName = "ListTypes"
	ListParentsEventName             event.EventName = "ListParents"
	ListContextsEventName            event.EventName = "ListContexts"
)

Variables

View Source
var CacheTtlCountComponentInstances = 12 * time.Hour
View Source
var CacheTtlGetAllComponentInstanceCursors = 12 * time.Hour
View Source
var CacheTtlGetComponentInstances = 12 * time.Hour

Functions

This section is empty.

Types

type ComponentInstanceHandler

type ComponentInstanceHandler interface {
	ListComponentInstances(*entity.ComponentInstanceFilter, *entity.ListOptions) (*entity.List[entity.ComponentInstanceResult], error)
	CreateComponentInstance(context.Context, *entity.ComponentInstance, *string) (*entity.ComponentInstance, error)
	UpdateComponentInstance(context.Context, *entity.ComponentInstance, *string) (*entity.ComponentInstance, error)
	DeleteComponentInstance(context.Context, int64) error
	ListCcrns(filter *entity.ComponentInstanceFilter, options *entity.ListOptions) ([]string, error)
	ListRegions(filter *entity.ComponentInstanceFilter, options *entity.ListOptions) ([]string, error)
	ListClusters(filter *entity.ComponentInstanceFilter, options *entity.ListOptions) ([]string, error)
	ListNamespaces(filter *entity.ComponentInstanceFilter, options *entity.ListOptions) ([]string, error)
	ListDomains(filter *entity.ComponentInstanceFilter, options *entity.ListOptions) ([]string, error)
	ListProjects(filter *entity.ComponentInstanceFilter, options *entity.ListOptions) ([]string, error)
	ListPods(filter *entity.ComponentInstanceFilter, options *entity.ListOptions) ([]string, error)
	ListContainers(filter *entity.ComponentInstanceFilter, options *entity.ListOptions) ([]string, error)
	ListTypes(filter *entity.ComponentInstanceFilter, options *entity.ListOptions) ([]string, error)
	ListParents(filter *entity.ComponentInstanceFilter, options *entity.ListOptions) ([]string, error)
	ListContexts(filter *entity.ComponentInstanceFilter, options *entity.ListOptions) ([]string, error)
}

func NewComponentInstanceHandler

func NewComponentInstanceHandler(handlerContext common.HandlerContext) ComponentInstanceHandler

type CreateComponentInstanceEvent

type CreateComponentInstanceEvent struct {
	ComponentInstance *entity.ComponentInstance
}

func (*CreateComponentInstanceEvent) Name

type DeleteComponentInstanceEvent

type DeleteComponentInstanceEvent struct {
	ComponentInstanceID int64
}

func (*DeleteComponentInstanceEvent) Name

type ListCcrnEvent

type ListCcrnEvent struct {
	Filter *entity.ComponentInstanceFilter
	Ccrn   []string
}

func (*ListCcrnEvent) Name

func (e *ListCcrnEvent) Name() event.EventName

type ListClustersEvent

type ListClustersEvent struct {
	Filter   *entity.ComponentInstanceFilter
	Clusters []string
}

func (*ListClustersEvent) Name

func (e *ListClustersEvent) Name() event.EventName

type ListComponentInstancesEvent

type ListComponentInstancesEvent struct {
	Filter             *entity.ComponentInstanceFilter
	Options            *entity.ListOptions
	ComponentInstances *entity.List[entity.ComponentInstanceResult]
}

func (*ListComponentInstancesEvent) Name

type ListContainersEvent

type ListContainersEvent struct {
	Filter     *entity.ComponentInstanceFilter
	Containers []string
}

func (*ListContainersEvent) Name

type ListContextsEvent

type ListContextsEvent struct {
	Filter   *entity.ComponentInstanceFilter
	Contexts []string
}

func (*ListContextsEvent) Name

func (e *ListContextsEvent) Name() event.EventName

type ListDomainsEvent

type ListDomainsEvent struct {
	Filter  *entity.ComponentInstanceFilter
	Domains []string
}

func (*ListDomainsEvent) Name

func (e *ListDomainsEvent) Name() event.EventName

type ListNamespacesEvent

type ListNamespacesEvent struct {
	Filter     *entity.ComponentInstanceFilter
	Namespaces []string
}

func (*ListNamespacesEvent) Name

type ListParentsEvent added in v1.1.0

type ListParentsEvent struct {
	Filter  *entity.ComponentInstanceFilter
	Parents []string
}

func (*ListParentsEvent) Name added in v1.1.0

func (e *ListParentsEvent) Name() event.EventName

type ListPodsEvent

type ListPodsEvent struct {
	Filter *entity.ComponentInstanceFilter
	Pods   []string
}

func (*ListPodsEvent) Name

func (e *ListPodsEvent) Name() event.EventName

type ListProjectsEvent

type ListProjectsEvent struct {
	Filter   *entity.ComponentInstanceFilter
	Projects []string
}

func (*ListProjectsEvent) Name

func (e *ListProjectsEvent) Name() event.EventName

type ListRegionsEvent

type ListRegionsEvent struct {
	Filter  *entity.ComponentInstanceFilter
	Regions []string
}

func (*ListRegionsEvent) Name

func (e *ListRegionsEvent) Name() event.EventName

type ListTypesEvent

type ListTypesEvent struct {
	Filter *entity.ComponentInstanceFilter
	Types  []string
}

func (*ListTypesEvent) Name

func (e *ListTypesEvent) Name() event.EventName

type UpdateComponentInstanceEvent

type UpdateComponentInstanceEvent struct {
	ComponentInstance *entity.ComponentInstance
}

func (*UpdateComponentInstanceEvent) Name

Jump to

Keyboard shortcuts

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