dto

package
v0.4.77 Latest Latest
Warning

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

Go to latest
Published: May 9, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateFolder

type CreateFolder struct {
	ProjectRef
	Name string `json:"name"`
	Path string `json:"path"`
	Note string `json:"note,omitempty"`
}

CreateFolder defines request for folder creation

func (CreateFolder) Validate

func (v CreateFolder) Validate() error

Validate returns error if not valid

type CreateProjectItemRequest

type CreateProjectItemRequest struct {
	Title string `json:"title"`
}

type CreateProjectRequest

type CreateProjectRequest struct {
	StoreID string `json:"store"`
	Title   string `json:"title"`
}

CreateProjectRequest request

func (CreateProjectRequest) Validate

func (v CreateProjectRequest) Validate() error

type CreateQuery

type CreateQuery struct {
	ProjectRef
	Folder string                        `json:"folder"`
	Query  models.QueryDefWithFolderPath `json:"query"`
}

type GetServerDatabasesRequest

type GetServerDatabasesRequest struct {
	Project     string `json:"proj"`
	Environment string `json:"env"`
	models.ServerReference
	Credentials *models.Credentials `json:"credentials"`
}

GetServerDatabasesRequest input for /dbserver/databases API

func (GetServerDatabasesRequest) Validate

func (v GetServerDatabasesRequest) Validate() error

Validate returns error if not valid

type ProjRecordsetSummary

type ProjRecordsetSummary struct {
	models.ProjectItem
	Columns    []string                `json:"columns,omitempty"`
	Recordsets []*ProjRecordsetSummary `json:"recordsets,omitempty"`
}

ProjRecordsetSummary holds summary info about recordset definition

type ProjectItemRef

type ProjectItemRef struct {
	ProjectRef
	ID string
}

ProjectItemRef holds ProjectRef & ID parameters

func (ProjectItemRef) Validate

func (v ProjectItemRef) Validate() error

Validate returns error if not valid

type ProjectRef

type ProjectRef struct {
	StoreID   string `json:"storage"`
	ProjectID string `json:"project"`
}

ProjectRef holds storage & project parameters

func (ProjectRef) Validate

func (v ProjectRef) Validate() error

Validate returns error if not valid

type UpdateQuery

type UpdateQuery struct {
	ProjectItemRef
	Query models.QueryDef `json:"query"`
}

Jump to

Keyboard shortcuts

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