folder

package
v0.52.0 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DAO

type DAO interface {
	Create(entity *v1.Folder) error
	Update(entity *v1.Folder) error
	Delete(project string, name string) error
	DeleteAll(project string) error
	Get(project string, name string) (*v1.Folder, error)
	List(q *Query) ([]*v1.Folder, error)
	RawList(q *Query) ([]json.RawMessage, error)
	MetadataList(q *Query) ([]api.Entity, error)
	RawMetadataList(q *Query) ([]json.RawMessage, error)
}

type Query

type Query struct {
	databaseModel.Query
	// NamePrefix is a prefix of the Folders.metadata.name that is used to filter the list of the Folders.
	// NamePrefix can be empty in case you want to return the full list of Folders available.
	NamePrefix string `query:"name"`
	// Project is the exact name of the project.
	// The value can come from the path of the URL or from the query parameter
	Project      string `param:"project" query:"project"`
	MetadataOnly bool   `query:"metadata_only"`
}

func (*Query) GetMetadataOnlyQueryParam added in v0.46.0

func (q *Query) GetMetadataOnlyQueryParam() bool

func (*Query) IsRawMetadataQueryAllowed added in v0.46.0

func (q *Query) IsRawMetadataQueryAllowed() bool

func (*Query) IsRawQueryAllowed added in v0.46.0

func (q *Query) IsRawQueryAllowed() bool

type Service

type Service interface {
	apiInterface.Service[*v1.Folder, *v1.Folder, *Query]
}

Jump to

Keyboard shortcuts

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