kozmomarketplacesdk

package
v0.0.0-...-9e48597 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	BASEURL = "http://127.0.0.1:9001/api/v1"
	// api route part
	FORK_COUNTER_API                             = "/products/%s/%d/fork"
	RUN_COUNTER_API                              = "/products/%s/%d/run"
	DELETE_PRODUCT                               = "/products/%s/%d"
	UPDATE_PRODUCTS                              = "/products/%s/%d"
	DELETE_TEAM_ALL_PRODUCTS                     = "/products/byTeam/%d"
	PUBLISH_AI_AGENT_TO_MARKETPLACE_INTERNAL_API = "/products/byTeam/%d/aiAgents/%d/byUser/%d"
)
View Source
const (
	PRODUCT_TYPE_AIAGENTS = "aiAgents"
	PRODUCT_TYPE_APPS     = "apps"
	PRODUCT_TYPE_HUBS     = "hubs"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AppForMarketplace

type AppForMarketplace struct {
	Name        string `json:"name"`
	Description string `json:"description"`
}

func NewAppForMarketplace

func NewAppForMarketplace(app *model.App) *AppForMarketplace

type IllaMarketplaceRestAPI

type IllaMarketplaceRestAPI struct {
	Config    *config.Config
	Validator *tokenvalidator.RequestTokenValidator
	Debug     bool `json:"-"`
}

func NewKozmoMarketplaceRestAPI

func NewKozmoMarketplaceRestAPI() *IllaMarketplaceRestAPI

func (*IllaMarketplaceRestAPI) CloseDebug

func (r *IllaMarketplaceRestAPI) CloseDebug()

func (*IllaMarketplaceRestAPI) DeleteProduct

func (r *IllaMarketplaceRestAPI) DeleteProduct(productType string, productID int) error

func (*IllaMarketplaceRestAPI) DeleteTeamAllProducts

func (r *IllaMarketplaceRestAPI) DeleteTeamAllProducts(teamID int) error

func (*IllaMarketplaceRestAPI) ForkCounter

func (r *IllaMarketplaceRestAPI) ForkCounter(productType string, productID int) error

func (*IllaMarketplaceRestAPI) OpenDebug

func (r *IllaMarketplaceRestAPI) OpenDebug()

func (*IllaMarketplaceRestAPI) PublishAIAgentToMarketplace

func (r *IllaMarketplaceRestAPI) PublishAIAgentToMarketplace(aiAgentID int, teamID int, userID int) error

func (*IllaMarketplaceRestAPI) UpdateProduct

func (r *IllaMarketplaceRestAPI) UpdateProduct(productType string, productID int, product interface{}) error

Jump to

Keyboard shortcuts

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