Documentation ¶
Index ¶
- func EnvironmentConnectorsEdgeSave(ctx context.Context, mc model.ClientSet, entity *model.Environment) error
- func GetEnvironmentByID(ctx context.Context, mc model.ClientSet, id object.ID) (*model.Environment, error)
- func GetEnvironmentsByIDs(ctx context.Context, mc model.ClientSet, ids ...object.ID) ([]*model.Environment, error)
- func GetLatestRevisions(ctx context.Context, modelClient model.ClientSet, serviceIDs ...object.ID) ([]*model.ServiceRevision, error)
- func GetServiceDependantIDs(ctx context.Context, mc model.ClientSet, serviceIDs ...object.ID) ([]object.ID, error)
- func GetServiceDependantNames(ctx context.Context, modelClient model.ClientSet, entity *model.Service) ([]string, error)
- func GetServiceNamesByIDs(ctx context.Context, modelClient model.ClientSet, serviceIDs ...object.ID) ([]string, error)
- func ProjectSubjectRolesEdgeSave(ctx context.Context, mc model.ClientSet, entity *model.Project) error
- func ServiceDependenciesEdgeSave(ctx context.Context, mc model.ClientSet, entity *model.Service) error
- func ServiceRelationshipCheckCycle(s *model.ServiceRelationship) bool
- func ServiceRelationshipGetDependencyNames(entity *model.Service) []string
- func ServiceResourceGetUniqueKey(r *model.ServiceResource) string
- func ServiceResourceInstancesEdgeSave(ctx context.Context, mc model.ClientSet, entity *model.ServiceResource) error
- func ServiceResourceRelationshipUpdateWithDependencies(ctx context.Context, mc model.ClientSet, dependencies map[string][]string, ...) error
- func ServiceResourceShapeClassQuery(query *model.ServiceResourceQuery) *model.ServiceResourceQuery
- func ServiceResourceToMap(resources []*model.ServiceResource) map[string]*model.ServiceResource
- func SubjectRolesEdgeSave(ctx context.Context, mc model.ClientSet, entity *model.Subject) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnvironmentConnectorsEdgeSave ¶
func EnvironmentConnectorsEdgeSave(ctx context.Context, mc model.ClientSet, entity *model.Environment) error
EnvironmentConnectorsEdgeSave saves the edge connectors of model.Environment entity.
func GetEnvironmentByID ¶
func GetEnvironmentByID(ctx context.Context, mc model.ClientSet, id object.ID) (*model.Environment, error)
GetEnvironmentByID gets an environment including project & connectors edges by ID.
func GetEnvironmentsByIDs ¶
func GetEnvironmentsByIDs(ctx context.Context, mc model.ClientSet, ids ...object.ID) ([]*model.Environment, error)
GetEnvironmentsByIDs gets environments including project & connectors edges by IDs.
func GetLatestRevisions ¶
func GetServiceDependantIDs ¶
func GetServiceDependantIDs(ctx context.Context, mc model.ClientSet, serviceIDs ...object.ID) ([]object.ID, error)
GetServiceDependantIDs gets IDs of services that depend on the given services.
func GetServiceDependantNames ¶
func GetServiceDependantNames( ctx context.Context, modelClient model.ClientSet, entity *model.Service, ) ([]string, error)
GetServiceDependantNames gets names of services that depends on the given service.
func GetServiceNamesByIDs ¶
func ProjectSubjectRolesEdgeSave ¶
func ProjectSubjectRolesEdgeSave(ctx context.Context, mc model.ClientSet, entity *model.Project) error
ProjectSubjectRolesEdgeSave saves the edge subject roles of model.Project entity.
func ServiceDependenciesEdgeSave ¶
func ServiceDependenciesEdgeSave(ctx context.Context, mc model.ClientSet, entity *model.Service) error
ServiceDependenciesEdgeSave saves the edge dependencies of model.Service entity.
func ServiceRelationshipCheckCycle ¶
func ServiceRelationshipCheckCycle(s *model.ServiceRelationship) bool
ServiceRelationshipCheckCycle checks if the path contains a dependency cycle.
func ServiceRelationshipGetDependencyNames ¶
ServiceRelationshipGetDependencyNames gets dependency service names of the given service.
func ServiceResourceGetUniqueKey ¶
func ServiceResourceGetUniqueKey(r *model.ServiceResource) string
ServiceResourceGetUniqueKey returns the unique index key of the given model.ServiceResource.
func ServiceResourceInstancesEdgeSave ¶
func ServiceResourceInstancesEdgeSave(ctx context.Context, mc model.ClientSet, entity *model.ServiceResource) error
ServiceResourceInstancesEdgeSave saves the edge instances of model.ServiceResource entity.
func ServiceResourceRelationshipUpdateWithDependencies ¶
func ServiceResourceRelationshipUpdateWithDependencies( ctx context.Context, mc model.ClientSet, dependencies map[string][]string, recordResources, createResources model.ServiceResources, ) error
ServiceResourceRelationshipUpdateWithDependencies updates the relationship with dependencies and resources.
func ServiceResourceShapeClassQuery ¶
func ServiceResourceShapeClassQuery(query *model.ServiceResourceQuery) *model.ServiceResourceQuery
ServiceResourceShapeClassQuery wraps the given model.ServiceResource query to select all shape class resources and the owned components and dependencies of them.
func ServiceResourceToMap ¶
func ServiceResourceToMap(resources []*model.ServiceResource) map[string]*model.ServiceResource
ServiceResourceToMap recursive set a map of service resources indexed by its unique index.
Types ¶
This section is empty.