marketplace

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApplyRequest

type ApplyRequest struct {
	Resources []*Item `json:"resources"`
}

type ApplyResponse

type ApplyResponse struct {
	Done  bool                `json:"done"`
	Items []ApplyResponseItem `json:"items"`
}

type ApplyResponseItem

type ApplyResponseItem struct {
	ItemID string `json:"itemId,omitempty"`
	Name   string `json:"name,omitempty"`

	Done     bool `json:"done"`
	Inserted bool `json:"inserted"`
	Updated  bool `json:"updated"`

	ValidationErrors []ApplyResponseItemValidationError `json:"validationErrors"`
}

type ApplyResponseItemValidationError

type ApplyResponseItemValidationError struct {
	Message string `json:"message"`
}

type Item

type Item map[string]interface{}

Item is a Marketplace item we use a map[string]interface{} to represent the item this allows to avoid changes in the code in case of a change in the resource structure

func (*Item) Del

func (i *Item) Del(key string)

func (*Item) Get

func (i *Item) Get(key string) interface{}

func (*Item) MarshalItem

func (i *Item) MarshalItem(encodingFormat string) ([]byte, error)

func (*Item) Set

func (i *Item) Set(key string, val interface{})

type UploadImageResponse

type UploadImageResponse struct {
	ID       string `json:"string"` //nolint: tagliatelle
	Name     string `json:"name"`
	File     string `json:"file"`
	Size     int64  `json:"size"`
	Location string `json:"location"`
}

Jump to

Keyboard shortcuts

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