Documentation
¶
Index ¶
- Constants
- Variables
- type ComponentInstanceHandler
- type CreateComponentInstanceEvent
- type DeleteComponentInstanceEvent
- type ListCcrnEvent
- type ListClustersEvent
- type ListComponentInstancesEvent
- type ListContainersEvent
- type ListContextsEvent
- type ListDomainsEvent
- type ListNamespacesEvent
- type ListParentsEvent
- type ListPodsEvent
- type ListProjectsEvent
- type ListRegionsEvent
- type ListTypesEvent
- type UpdateComponentInstanceEvent
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 ¶
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 ¶
func (e *CreateComponentInstanceEvent) Name() event.EventName
type DeleteComponentInstanceEvent ¶
type DeleteComponentInstanceEvent struct {
ComponentInstanceID int64
}
func (*DeleteComponentInstanceEvent) Name ¶
func (e *DeleteComponentInstanceEvent) Name() event.EventName
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 ¶
func (e *ListComponentInstancesEvent) Name() event.EventName
type ListContainersEvent ¶
type ListContainersEvent struct {
Filter *entity.ComponentInstanceFilter
Containers []string
}
func (*ListContainersEvent) Name ¶
func (e *ListContainersEvent) Name() event.EventName
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 ¶
func (e *ListNamespacesEvent) Name() event.EventName
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 ¶
func (e *UpdateComponentInstanceEvent) Name() event.EventName
Click to show internal directories.
Click to hide internal directories.