provider

package
v0.1.10 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

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

func NewHandler

func NewHandler(service *Service) *Handler

func (*Handler) Capabilities

func (h *Handler) Capabilities(c *gin.Context)

Capabilities handles the request to get provider capabilities

func (*Handler) Delete

func (h *Handler) Delete(c *gin.Context)

Delete handles the request to delete a provider

func (*Handler) Descriptors

func (h *Handler) Descriptors(c *gin.Context)

Descriptors handles the request to get provider descriptors

func (*Handler) Detail

func (h *Handler) Detail(c *gin.Context)

Detail handles the request to get provider details

func (*Handler) Entities

func (h *Handler) Entities(c *gin.Context)

Entities handles the request to get provider entities

func (*Handler) Get

func (h *Handler) Get(c *gin.Context)

Get alias for route compatibility

func (*Handler) List

func (h *Handler) List(c *gin.Context)

List handles the request to list providers

func (*Handler) Reload

func (h *Handler) Reload(c *gin.Context)

Reload handles the request to reload a provider

type ProviderActionRequest

type ProviderActionRequest struct {
	ID string `uri:"id"`
}

Provider DTOs - canonical REST contracts for provider API operations.

type ProviderDeleteResponse

type ProviderDeleteResponse struct {
	ID string `json:"id"`
}

ProviderDeleteResponse confirms provider deletion.

type ProviderDetailRequest

type ProviderDetailRequest struct {
	ID string `uri:"id"`
}

type ProviderDetailResponse

type ProviderDetailResponse = ProviderItem

ProviderDetailResponse returns the canonical detail payload for a single provider.

type ProviderItem added in v0.1.10

type ProviderItem map[string]interface{}

ProviderItem is the canonical provider metadata item returned by list/detail/capabilities.

type ProviderReloadResponse

type ProviderReloadResponse struct {
	ID        string `json:"id"`
	UpdatedAt string `json:"updatedAt"`
}

ProviderReloadResponse confirms provider reload and updated timestamp.

type ProvidersCapabilitiesRequest

type ProvidersCapabilitiesRequest struct{}

type ProvidersCapabilitiesResponse

type ProvidersCapabilitiesResponse struct {
	Items []ProviderItem `json:"items"`
	Total int            `json:"total"`
}

ProvidersCapabilitiesResponse is the canonical REST list response for provider capabilities.

type ProvidersDescriptorsRequest

type ProvidersDescriptorsRequest struct{}

type ProvidersDescriptorsResponse

type ProvidersDescriptorsResponse struct {
	ProviderManifests map[string]interface{} `json:"providerManifests"`
}

ProvidersDescriptorsResponse contains provider OpenAPI manifests keyed by provider id.

type ProvidersEntitiesRequest

type ProvidersEntitiesRequest struct {
	ID string `uri:"id"`
}

type ProvidersEntitiesResponse

type ProvidersEntitiesResponse struct {
	Items []map[string]interface{} `json:"items"`
	Total int                      `json:"total"`
}

ProvidersEntitiesResponse lists entities exported by one or more providers.

type ProvidersListRequest

type ProvidersListRequest struct {
	Page     int `form:"page"`
	PageSize int `form:"pageSize"`
}

type ProvidersListResponse

type ProvidersListResponse struct {
	Items    []ProviderItem `json:"items"`
	Total    int            `json:"total"`
	Page     int            `json:"page"`
	PageSize int            `json:"pageSize"`
}

ProvidersListResponse is the canonical REST list response for providers.

type Service

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

func NewService

func NewService(svcCtx *svc.ServiceContext) *Service

func (*Service) Capabilities

Capabilities returns the capabilities of all providers

func (*Service) Delete

Delete deletes a provider

func (*Service) Descriptors

Descriptors returns the OpenAPI descriptors of all providers

func (*Service) Detail

Detail returns the details of a provider

func (*Service) Entities

Entities returns the entities of providers

func (*Service) List

List returns the list of providers

func (*Service) Reload

Reload reloads a provider

Jump to

Keyboard shortcuts

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