tag

package
v0.0.0-...-d125d34 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller interface {
	List(ctx context.Context, resourceType string, resourceID uint) (*ListResponse, error)
	ListSubResourceTags(ctx context.Context, resourceType string,
		resourceID uint) (*ListResponse, error)
	Update(ctx context.Context, resourceType string, resourceID uint, r *UpdateRequest) error
	CreateMetatags(ctx context.Context, createMetatagRequest *CreateMetatagsRequest) error
	GetMetatagKeys(ctx context.Context) ([]string, error)
	GetMetatagsByKey(ctx context.Context, key string) ([]*models.Metatag, error)
}

func NewController

func NewController(param *param.Param) Controller

type CreateMetatagsRequest

type CreateMetatagsRequest struct {
	Metatags []*tagmodels.Metatag
}

type ListResponse

type ListResponse struct {
	Tags []*Tag `json:"tags"`
}

type Tag

type Tag struct {
	Key   string `json:"key"`
	Value string `json:"value"`
}

type UpdateRequest

type UpdateRequest struct {
	Tags []*tagmodels.TagBasic `json:"tags"`
}

Jump to

Keyboard shortcuts

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