manager

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2026 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ManagerCollection

type ManagerCollection struct {
	// contains filtered or unexported fields
}

func NewManagerCollection

func NewManagerCollection(collection collection.Repository, managerContext *ManagerContext, managerRequest *ManagerRequest) *ManagerCollection

func (*ManagerCollection) CloneCollection

func (m *ManagerCollection) CloneCollection(owner, id, name string) *collection.Collection

func (*ManagerCollection) CollectRequest

func (m *ManagerCollection) CollectRequest(owner string, payload PayloadCollectRequest) (*collection.Collection, *action.Request)

func (*ManagerCollection) Delete

func (m *ManagerCollection) Delete(owner, id string) *collection.Collection

func (*ManagerCollection) DeleteRequestFromCollection

func (m *ManagerCollection) DeleteRequestFromCollection(owner string, collection *collection.Collection, requestId string) (*collection.Collection, *action.Request, *action.Response)

func (*ManagerCollection) DeleteRequestFromCollectionById

func (m *ManagerCollection) DeleteRequestFromCollectionById(owner string, collectionId string, requestId string) (*collection.Collection, *action.Request, *action.Response)

func (*ManagerCollection) Export

func (m *ManagerCollection) Export(owner string, nodes ...domain.NodeReference) []dto.DtoCollection

func (*ManagerCollection) ExportList

func (m *ManagerCollection) ExportList(owner string, ids ...string) []dto.DtoCollection

func (*ManagerCollection) Find

func (m *ManagerCollection) Find(owner string, id string) (*collection.Collection, bool)

func (*ManagerCollection) FindDto

func (m *ManagerCollection) FindDto(owner string, id string) (*dto.DtoCollection, bool)

func (*ManagerCollection) FindLite

func (m *ManagerCollection) FindLite(owner string, id string) (*collection.CollectionLite, bool)

func (*ManagerCollection) FindLiteCollectionNodes

func (m *ManagerCollection) FindLiteCollectionNodes(owner string, nodes []domain.NodeReference) []collection.NodeCollectionLite

func (*ManagerCollection) FindLiteRequestNodes

func (m *ManagerCollection) FindLiteRequestNodes(owner string, collection *collection.Collection) []action.NodeRequestLite

func (*ManagerCollection) ImportDtoCollections

func (m *ManagerCollection) ImportDtoCollections(owner string, dtos ...dto.DtoCollection) ([]collection.Collection, error)

func (*ManagerCollection) ImportOpenApi

func (m *ManagerCollection) ImportOpenApi(owner string, file []byte) (*collection.Collection, error)

func (*ManagerCollection) ImportRequests

func (m *ManagerCollection) ImportRequests(owner string, coll *collection.Collection, reqs ...action.Request) *collection.Collection

func (*ManagerCollection) ImportRequestsById

func (m *ManagerCollection) ImportRequestsById(owner string, id string, reqs ...action.Request) *collection.Collection

func (*ManagerCollection) Insert

func (m *ManagerCollection) Insert(owner string, collection *collection.Collection) *collection.Collection

func (*ManagerCollection) MoveRequestBetweenCollections

func (m *ManagerCollection) MoveRequestBetweenCollections(owner string, source, target *collection.Collection, requestId string, movement Movement) (*collection.Collection, *collection.Collection, *action.Request)

func (*ManagerCollection) MoveRequestBetweenCollectionsById

func (m *ManagerCollection) MoveRequestBetweenCollectionsById(owner, sourceId, targetId, requestId string, movement Movement) (*collection.Collection, *collection.Collection, *action.Request)

func (*ManagerCollection) ResolveRequestReferences

func (m *ManagerCollection) ResolveRequestReferences(owner string, collection *collection.Collection, requests ...action.Request) *collection.Collection

func (*ManagerCollection) SortCollectionRequest

func (m *ManagerCollection) SortCollectionRequest(owner string, collection *collection.Collection, payload PayloadSortNodes) *collection.Collection

func (*ManagerCollection) SortCollectionRequestById

func (m *ManagerCollection) SortCollectionRequestById(owner string, id string, payload PayloadSortNodes) *collection.Collection

type ManagerContext

type ManagerContext struct {
	// contains filtered or unexported fields
}

func NewManagerContext

func NewManagerContext(context context.Repository) *ManagerContext

func (*ManagerContext) Delete

func (m *ManagerContext) Delete(owner string, context *context.Context) *context.Context

func (*ManagerContext) Find

func (m *ManagerContext) Find(owner string, id string) (*context.Context, bool)

func (*ManagerContext) ImportMerge

func (m *ManagerContext) ImportMerge(owner string, target, source *dto.DtoContext) *context.Context

func (*ManagerContext) Insert

func (m *ManagerContext) Insert(owner string, collection *collection.Collection, context *context.Context) *context.Context

func (*ManagerContext) Update

func (m *ManagerContext) Update(owner string, context *context.Context) (*context.Context, bool)

type ManagerEndPoint

type ManagerEndPoint struct {
	// contains filtered or unexported fields
}

func NewManagerEndPoint

func NewManagerEndPoint(endPoint mock.RepositoryEndPoint, managerMetrics *ManagerMetrics) *ManagerEndPoint

func (*ManagerEndPoint) Delete

func (m *ManagerEndPoint) Delete(owner string, id string) *mock.EndPoint

func (*ManagerEndPoint) Export

func (m *ManagerEndPoint) Export(owner string) []mock.EndPoint

func (*ManagerEndPoint) ExportList

func (m *ManagerEndPoint) ExportList(owner string, ids ...string) []mock.EndPoint

func (*ManagerEndPoint) Find

func (m *ManagerEndPoint) Find(owner, id string) (*mock.EndPoint, bool)

func (*ManagerEndPoint) FindAll

func (m *ManagerEndPoint) FindAll(owner string) []mock.EndPointLite

func (*ManagerEndPoint) FindByRequest

func (m *ManagerEndPoint) FindByRequest(owner string, method domain.HttpMethod, path string) (*mock.EndPoint, bool)

func (*ManagerEndPoint) FindFull

func (m *ManagerEndPoint) FindFull(owner, id string) (*mock.EndPointFull, bool)

func (*ManagerEndPoint) Import

func (m *ManagerEndPoint) Import(owner string, endPoints []mock.EndPoint) []string

func (*ManagerEndPoint) Insert

func (m *ManagerEndPoint) Insert(owner string, endPoint *mock.EndPointFull) (*mock.EndPoint, []error)

func (*ManagerEndPoint) Sort

func (m *ManagerEndPoint) Sort(owner string, references []domain.NodeReference) []mock.EndPoint

type ManagerGroup

type ManagerGroup struct {
	// contains filtered or unexported fields
}

func NewManagerGroup

func NewManagerGroup(group group.Repository, managerCollection *ManagerCollection) *ManagerGroup

func (*ManagerGroup) CloneCollection

func (m *ManagerGroup) CloneCollection(owner string, group *group.Group, id, name string) (*group.Group, *collection.Collection)

func (*ManagerGroup) CollectRequest

func (m *ManagerGroup) CollectRequest(owner string, group *group.Group, payload PayloadCollectRequest) (*group.Group, *collection.Collection, *action.Request)

func (*ManagerGroup) Delete

func (m *ManagerGroup) Delete(owner string, id string) *group.Group

func (*ManagerGroup) DeleteCollection

func (m *ManagerGroup) DeleteCollection(owner string, group *group.Group, id string) (*group.Group, *collection.Collection)

func (*ManagerGroup) Find

func (m *ManagerGroup) Find(owner, id string) (*group.Group, bool)

func (*ManagerGroup) FindLiteNodes

func (m *ManagerGroup) FindLiteNodes(owner string, group *group.Group) []collection.NodeCollectionLite

func (*ManagerGroup) ImportCollection

func (m *ManagerGroup) ImportCollection(owner string, group *group.Group, collection *collection.Collection) (*group.Group, *collection.Collection)

func (*ManagerGroup) ImportDtoCollections

func (m *ManagerGroup) ImportDtoCollections(owner string, group *group.Group, dtos ...dto.DtoCollection) (*group.Group, []collection.Collection, error)

func (*ManagerGroup) ImportOpenApi

func (m *ManagerGroup) ImportOpenApi(owner string, group *group.Group, file []byte) (*group.Group, *collection.Collection, error)

func (*ManagerGroup) ImportRequestsById

func (m *ManagerGroup) ImportRequestsById(owner string, group *group.Group, id string, reqs ...action.Request) (*group.Group, *collection.Collection)

func (*ManagerGroup) Insert

func (m *ManagerGroup) Insert(owner string, group *group.Group) *group.Group

func (*ManagerGroup) SortCollections

func (m *ManagerGroup) SortCollections(owner string, group *group.Group, payload PayloadSortNodes) *group.Group

type ManagerHistoric

type ManagerHistoric struct {
	// contains filtered or unexported fields
}

func NewManagerHistoric

func NewManagerHistoric(managerRequest *ManagerRequest, managerCollection *ManagerCollection) *ManagerHistoric

func (*ManagerHistoric) Delete

func (m *ManagerHistoric) Delete(owner string, collection *collection.Collection, requestId string) (*collection.Collection, *action.Request, *action.Response)

func (*ManagerHistoric) FindLite

func (m *ManagerHistoric) FindLite(owner string, collection *collection.Collection) []action.NodeRequestLite

func (*ManagerHistoric) Insert

func (m *ManagerHistoric) Insert(owner string, collection *collection.Collection, request *action.Request, response *action.Response) (*collection.Collection, *action.Request, *action.Response)

type ManagerMetrics

type ManagerMetrics struct {
	// contains filtered or unexported fields
}

func NewManagerMetrics

func NewManagerMetrics(metrics mock_domain.RepositoryMetrics) *ManagerMetrics

func (*ManagerMetrics) Delete

func (m *ManagerMetrics) Delete(owner string, endPoint *mock_domain.EndPoint) *mock_domain.Metrics

func (*ManagerMetrics) Find

func (m *ManagerMetrics) Find(owner string, endPoint *mock_domain.EndPoint) (*mock_domain.Metrics, bool)

func (*ManagerMetrics) ResolveRequest

func (m *ManagerMetrics) ResolveRequest(owner string, endPoint *mock_domain.EndPoint, response *mock_domain.Response, latency int64) *mock_domain.Metrics

func (*ManagerMetrics) ResolveStatus

func (m *ManagerMetrics) ResolveStatus(owner string, oldEndPoint *mock_domain.EndPoint, newEndPoint *mock_domain.EndPoint) *mock_domain.Metrics

type ManagerRequest

type ManagerRequest struct {
	// contains filtered or unexported fields
}

func NewManagerRequest

func NewManagerRequest(request action.RepositoryRequest, response action.RepositoryResponse) *ManagerRequest

func (*ManagerRequest) Delete

func (m *ManagerRequest) Delete(owner string, request *action.Request) (*action.Request, *action.Response)

func (*ManagerRequest) DeleteMany

func (m *ManagerRequest) DeleteMany(owner string, ids ...string) ([]action.Request, []action.Response)

func (*ManagerRequest) Export

func (m *ManagerRequest) Export(owner string, nodes ...domain.NodeReference) []action.Request

func (*ManagerRequest) ExportList

func (m *ManagerRequest) ExportList(owner string, ids ...string) []action.Request

func (*ManagerRequest) Find

func (m *ManagerRequest) Find(owner string, key string) (*action.Request, *action.Response, bool)

func (*ManagerRequest) FindLiteNodes

func (m *ManagerRequest) FindLiteNodes(owner string, references []domain.NodeReference) []action.NodeRequestLite

func (*ManagerRequest) FindNodes

func (m *ManagerRequest) FindNodes(owner string, nodes []domain.NodeReference) []action.NodeRequest

func (*ManagerRequest) FindRequest

func (m *ManagerRequest) FindRequest(owner string, key string) (*action.Request, bool)

func (*ManagerRequest) FindResponse

func (m *ManagerRequest) FindResponse(owner string, key string) (*action.Response, bool)

func (*ManagerRequest) Insert

func (m *ManagerRequest) Insert(owner string, request *action.Request, response *action.Response) (*action.Request, *action.Response)

func (*ManagerRequest) InsertManyRequests

func (m *ManagerRequest) InsertManyRequests(owner string, requests []action.Request) []action.Request

func (*ManagerRequest) InsertRequest

func (m *ManagerRequest) InsertRequest(owner string, request *action.Request) *action.Request

func (*ManagerRequest) InsertResponse

func (m *ManagerRequest) InsertResponse(owner string, response *action.Response) *action.Response

func (*ManagerRequest) Release

func (m *ManagerRequest) Release(owner string, request *action.Request, response *action.Response) (*action.Request, *action.Response)

func (*ManagerRequest) Update

func (m *ManagerRequest) Update(owner string, request *action.Request) *action.Request

type ManagerToken

type ManagerToken struct {
	// contains filtered or unexported fields
}

func NewManagerToken

func NewManagerToken(token token.Repository) *ManagerToken

func (*ManagerToken) Delete

func (m *ManagerToken) Delete(owner string, token *token.Token) *token.Token

func (*ManagerToken) DeleteById

func (m *ManagerToken) DeleteById(owner string, token string) (*token.Token, bool)

func (*ManagerToken) FindAll

func (m *ManagerToken) FindAll(owner string) []token.LiteToken

func (*ManagerToken) FindByName

func (m *ManagerToken) FindByName(owner, name string) (*token.Token, bool)

func (*ManagerToken) FindByToken

func (m *ManagerToken) FindByToken(owner, tkn string) (*token.Token, bool)

func (*ManagerToken) FindGlobal

func (m *ManagerToken) FindGlobal(tkn string) (*token.Token, bool)

func (*ManagerToken) Insert

func (m *ManagerToken) Insert(owner string, tkn *token.LiteToken) (string, *token.LiteToken)

type Movement

type Movement string
const (
	CLONE Movement = "clone"
	MOVE  Movement = "move"
)

func (Movement) String

func (s Movement) String() string

type PayloadCollectRequest

type PayloadCollectRequest struct {
	SourceId    string         `json:"source_id"`
	TargetId    string         `json:"target_id"`
	TargetName  string         `json:"target_name"`
	Request     action.Request `json:"request"`
	RequestName string         `json:"request_name"`
	Movement    Movement       `json:"move"`
}

type PayloadCollectionNode

type PayloadCollectionNode struct {
	Order int    `json:"order"`
	Item  string `json:"item"`
}

type PayloadSortNodes

type PayloadSortNodes struct {
	Nodes []PayloadCollectionNode `json:"nodes"`
}

func (*PayloadSortNodes) SortNodes

func (p *PayloadSortNodes) SortNodes() *PayloadSortNodes

Jump to

Keyboard shortcuts

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