Documentation
¶
Index ¶
- type BatchLogEventsParams
- type CloneDeploymentFunctionsAssetsParams
- type CloneDeploymentOpenAPIv3AssetsParams
- type CloneDeploymentPackagesParams
- type CloneDeploymentPackagesRow
- type CloneDeploymentParams
- type CloneDeploymentToolFunctionsParams
- type CreateDeploymentFunctionsAccessParams
- type CreateDeploymentParams
- type CreateFunctionsResourceParams
- type CreateFunctionsToolParams
- type CreateHTTPSecurityParams
- type CreateOpenAPIv3ToolDefinitionParams
- type DBTX
- type DangerouslyClearDeploymentHTTPSecurityParams
- type DangerouslyClearDeploymentToolsParams
- type Deployment
- type DeploymentsFunction
- type DeploymentsOpenapiv3Asset
- type DescribeDeploymentPackagesRow
- type FunctionResourceDefinition
- type FunctionToolDefinition
- type GetDeploymentByIdempotencyKeyParams
- type GetDeploymentByIdempotencyKeyRow
- type GetDeploymentFunctionsParams
- type GetDeploymentFunctionsWithoutAccessParams
- type GetDeploymentLogsParams
- type GetDeploymentLogsRow
- type GetDeploymentParams
- type GetDeploymentRow
- type GetDeploymentWithAssetsParams
- type GetDeploymentWithAssetsRow
- type GetFunctionCredentialsBatchParams
- type GetFunctionCredentialsBatchRow
- type HttpSecurity
- type HttpToolDefinition
- type ListDeploymentsParams
- type ListDeploymentsRow
- type LogDeploymentEventParams
- type PackageVersion
- type Queries
- func (q *Queries) BatchLogEvents(ctx context.Context, arg []BatchLogEventsParams) (int64, error)
- func (q *Queries) CloneDeployment(ctx context.Context, arg CloneDeploymentParams) (uuid.UUID, error)
- func (q *Queries) CloneDeploymentFunctionsAssets(ctx context.Context, arg CloneDeploymentFunctionsAssetsParams) ([]uuid.UUID, error)
- func (q *Queries) CloneDeploymentOpenAPIv3Assets(ctx context.Context, arg CloneDeploymentOpenAPIv3AssetsParams) ([]uuid.UUID, error)
- func (q *Queries) CloneDeploymentPackages(ctx context.Context, arg CloneDeploymentPackagesParams) ([]CloneDeploymentPackagesRow, error)
- func (q *Queries) CloneDeploymentToolFunctions(ctx context.Context, arg CloneDeploymentToolFunctionsParams) ([]uuid.UUID, error)
- func (q *Queries) CreateDeployment(ctx context.Context, arg CreateDeploymentParams) (pgconn.CommandTag, error)
- func (q *Queries) CreateDeploymentFunctionsAccess(ctx context.Context, arg CreateDeploymentFunctionsAccessParams) (uuid.UUID, error)
- func (q *Queries) CreateFunctionsResource(ctx context.Context, arg CreateFunctionsResourceParams) (FunctionResourceDefinition, error)
- func (q *Queries) CreateFunctionsTool(ctx context.Context, arg CreateFunctionsToolParams) (FunctionToolDefinition, error)
- func (q *Queries) CreateHTTPSecurity(ctx context.Context, arg CreateHTTPSecurityParams) (HttpSecurity, error)
- func (q *Queries) CreateOpenAPIv3ToolDefinition(ctx context.Context, arg CreateOpenAPIv3ToolDefinitionParams) (HttpToolDefinition, error)
- func (q *Queries) DangerouslyClearDeploymentHTTPSecurity(ctx context.Context, arg DangerouslyClearDeploymentHTTPSecurityParams) (int64, error)
- func (q *Queries) DangerouslyClearDeploymentTools(ctx context.Context, arg DangerouslyClearDeploymentToolsParams) (int64, error)
- func (q *Queries) DescribeDeploymentPackages(ctx context.Context, deploymentID uuid.UUID) ([]DescribeDeploymentPackagesRow, error)
- func (q *Queries) GetActiveDeploymentID(ctx context.Context, projectID uuid.UUID) (uuid.UUID, error)
- func (q *Queries) GetDeployment(ctx context.Context, arg GetDeploymentParams) (GetDeploymentRow, error)
- func (q *Queries) GetDeploymentByIdempotencyKey(ctx context.Context, arg GetDeploymentByIdempotencyKeyParams) (GetDeploymentByIdempotencyKeyRow, error)
- func (q *Queries) GetDeploymentFunctions(ctx context.Context, arg GetDeploymentFunctionsParams) ([]DeploymentsFunction, error)
- func (q *Queries) GetDeploymentFunctionsWithoutAccess(ctx context.Context, arg GetDeploymentFunctionsWithoutAccessParams) ([]uuid.UUID, error)
- func (q *Queries) GetDeploymentLogs(ctx context.Context, arg GetDeploymentLogsParams) ([]GetDeploymentLogsRow, error)
- func (q *Queries) GetDeploymentOpenAPIv3(ctx context.Context, deploymentID uuid.UUID) ([]DeploymentsOpenapiv3Asset, error)
- func (q *Queries) GetDeploymentWithAssets(ctx context.Context, arg GetDeploymentWithAssetsParams) ([]GetDeploymentWithAssetsRow, error)
- func (q *Queries) GetFunctionCredentialsBatch(ctx context.Context, arg GetFunctionCredentialsBatchParams) ([]GetFunctionCredentialsBatchRow, error)
- func (q *Queries) GetLatestDeploymentID(ctx context.Context, projectID uuid.UUID) (uuid.UUID, error)
- func (q *Queries) ListDeployments(ctx context.Context, arg ListDeploymentsParams) ([]ListDeploymentsRow, error)
- func (q *Queries) LogDeploymentEvent(ctx context.Context, arg LogDeploymentEventParams) error
- func (q *Queries) TransitionDeployment(ctx context.Context, arg TransitionDeploymentParams) (TransitionDeploymentRow, error)
- func (q *Queries) UpsertDeploymentFunctionsAsset(ctx context.Context, arg UpsertDeploymentFunctionsAssetParams) (UpsertDeploymentFunctionsAssetRow, error)
- func (q *Queries) UpsertDeploymentOpenAPIv3Asset(ctx context.Context, arg UpsertDeploymentOpenAPIv3AssetParams) (UpsertDeploymentOpenAPIv3AssetRow, error)
- func (q *Queries) UpsertDeploymentPackage(ctx context.Context, arg UpsertDeploymentPackageParams) (uuid.UUID, error)
- func (q *Queries) WithTx(tx pgx.Tx) *Queries
- type TransitionDeploymentParams
- type TransitionDeploymentRow
- type UpsertDeploymentFunctionsAssetParams
- type UpsertDeploymentFunctionsAssetRow
- type UpsertDeploymentOpenAPIv3AssetParams
- type UpsertDeploymentOpenAPIv3AssetRow
- type UpsertDeploymentPackageParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BatchLogEventsParams ¶
type CreateDeploymentParams ¶
type CreateOpenAPIv3ToolDefinitionParams ¶
type CreateOpenAPIv3ToolDefinitionParams struct {
ProjectID uuid.UUID
DeploymentID uuid.UUID
Openapiv3DocumentID uuid.NullUUID
ToolUrn urn.Tool
Name string
UntruncatedName pgtype.Text
Openapiv3Operation pgtype.Text
Summary string
Description string
Tags []string
Confirm pgtype.Text
ConfirmPrompt pgtype.Text
XGram pgtype.Bool
OriginalName pgtype.Text
OriginalSummary pgtype.Text
OriginalDescription pgtype.Text
Security []byte
HttpMethod string
Path string
SchemaVersion string
Schema []byte
HeaderSettings []byte
QuerySettings []byte
PathSettings []byte
ServerEnvVar string
DefaultServerUrl pgtype.Text
RequestContentType pgtype.Text
ResponseFilter *models.ResponseFilter
}
type DBTX ¶
type DBTX interface {
Exec(context.Context, string, ...interface{}) (pgconn.CommandTag, error)
Query(context.Context, string, ...interface{}) (pgx.Rows, error)
QueryRow(context.Context, string, ...interface{}) pgx.Row
CopyFrom(ctx context.Context, tableName pgx.Identifier, columnNames []string, rowSrc pgx.CopyFromSource) (int64, error)
}
type Deployment ¶
type Deployment struct {
ID uuid.UUID
Seq int64
UserID string
ProjectID uuid.UUID
OrganizationID string
IdempotencyKey string
ClonedFrom uuid.NullUUID
GithubRepo pgtype.Text
GithubPr pgtype.Text
GithubSha pgtype.Text
ExternalID pgtype.Text
ExternalUrl pgtype.Text
CreatedAt pgtype.Timestamptz
UpdatedAt pgtype.Timestamptz
}
type DeploymentsFunction ¶
type DescribeDeploymentPackagesRow ¶
type DescribeDeploymentPackagesRow struct {
DeploymentPackageID uuid.UUID
PackageName string
PackageVersion PackageVersion
}
type FunctionResourceDefinition ¶
type FunctionResourceDefinition struct {
ID uuid.UUID
ResourceUrn urn.Resource
ProjectID uuid.UUID
DeploymentID uuid.UUID
FunctionID uuid.UUID
Runtime string
Name string
Description string
Uri string
Title pgtype.Text
MimeType pgtype.Text
Variables []byte
Meta []byte
CreatedAt pgtype.Timestamptz
UpdatedAt pgtype.Timestamptz
DeletedAt pgtype.Timestamptz
Deleted bool
}
type FunctionToolDefinition ¶
type FunctionToolDefinition struct {
ID uuid.UUID
ToolUrn urn.Tool
ProjectID uuid.UUID
DeploymentID uuid.UUID
FunctionID uuid.UUID
Runtime string
Name string
Description string
InputSchema []byte
Variables []byte
Meta []byte
CreatedAt pgtype.Timestamptz
UpdatedAt pgtype.Timestamptz
DeletedAt pgtype.Timestamptz
Deleted bool
}
type GetDeploymentByIdempotencyKeyRow ¶
type GetDeploymentByIdempotencyKeyRow struct {
Deployment Deployment
Status string
}
type GetDeploymentLogsParams ¶
type GetDeploymentLogsRow ¶
type GetDeploymentRow ¶
type GetDeploymentRow struct {
Deployment Deployment
Status string
}
type GetDeploymentWithAssetsRow ¶
type GetDeploymentWithAssetsRow struct {
Deployment Deployment
Status string
DeploymentsOpenapiv3AssetID uuid.NullUUID
DeploymentsOpenapiv3AssetStoreID uuid.NullUUID
DeploymentsOpenapiv3AssetName pgtype.Text
DeploymentsOpenapiv3AssetSlug pgtype.Text
DeploymentsFunctionsID uuid.NullUUID
DeploymentsFunctionsAssetID uuid.NullUUID
DeploymentsFunctionsName pgtype.Text
DeploymentsFunctionsSlug pgtype.Text
DeploymentsFunctionsRuntime pgtype.Text
DeploymentPackageID uuid.NullUUID
PackageName pgtype.Text
PackageVersionMajor pgtype.Int8
PackageVersionMinor pgtype.Int8
PackageVersionPatch pgtype.Int8
PackageVersionPrerelease pgtype.Text
PackageVersionBuild pgtype.Text
Openapiv3ToolCount int64
FunctionsToolCount int64
}
type HttpSecurity ¶
type HttpSecurity struct {
ID uuid.UUID
DeploymentID uuid.UUID
ProjectID uuid.NullUUID
Openapiv3DocumentID uuid.NullUUID
Key string
Type pgtype.Text
Name pgtype.Text
InPlacement pgtype.Text
Scheme pgtype.Text
BearerFormat pgtype.Text
OauthTypes []string
OauthFlows []byte
EnvVariables []string
CreatedAt pgtype.Timestamptz
UpdatedAt pgtype.Timestamptz
DeletedAt pgtype.Timestamptz
Deleted bool
}
type HttpToolDefinition ¶
type HttpToolDefinition struct {
ID uuid.UUID
ToolUrn urn.Tool
ProjectID uuid.UUID
DeploymentID uuid.UUID
Openapiv3DocumentID uuid.NullUUID
Confirm pgtype.Text
ConfirmPrompt pgtype.Text
Summarizer pgtype.Text
Name string
UntruncatedName pgtype.Text
Summary string
Description string
Openapiv3Operation pgtype.Text
Tags []string
XGram pgtype.Bool
OriginalName pgtype.Text
OriginalSummary pgtype.Text
OriginalDescription pgtype.Text
ServerEnvVar string
DefaultServerUrl pgtype.Text
Security []byte
HttpMethod string
Path string
SchemaVersion string
Schema []byte
HeaderSettings []byte
QuerySettings []byte
PathSettings []byte
RequestContentType pgtype.Text
ResponseFilter *models.ResponseFilter
CreatedAt pgtype.Timestamptz
UpdatedAt pgtype.Timestamptz
DeletedAt pgtype.Timestamptz
Deleted bool
}
type ListDeploymentsParams ¶
type ListDeploymentsRow ¶
type PackageVersion ¶
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) BatchLogEvents ¶
func (*Queries) CloneDeployment ¶
func (*Queries) CloneDeploymentFunctionsAssets ¶
func (*Queries) CloneDeploymentOpenAPIv3Assets ¶
func (*Queries) CloneDeploymentPackages ¶
func (q *Queries) CloneDeploymentPackages(ctx context.Context, arg CloneDeploymentPackagesParams) ([]CloneDeploymentPackagesRow, error)
func (*Queries) CloneDeploymentToolFunctions ¶
func (*Queries) CreateDeployment ¶
func (q *Queries) CreateDeployment(ctx context.Context, arg CreateDeploymentParams) (pgconn.CommandTag, error)
func (*Queries) CreateDeploymentFunctionsAccess ¶
func (*Queries) CreateFunctionsResource ¶
func (q *Queries) CreateFunctionsResource(ctx context.Context, arg CreateFunctionsResourceParams) (FunctionResourceDefinition, error)
func (*Queries) CreateFunctionsTool ¶
func (q *Queries) CreateFunctionsTool(ctx context.Context, arg CreateFunctionsToolParams) (FunctionToolDefinition, error)
func (*Queries) CreateHTTPSecurity ¶
func (q *Queries) CreateHTTPSecurity(ctx context.Context, arg CreateHTTPSecurityParams) (HttpSecurity, error)
func (*Queries) CreateOpenAPIv3ToolDefinition ¶
func (q *Queries) CreateOpenAPIv3ToolDefinition(ctx context.Context, arg CreateOpenAPIv3ToolDefinitionParams) (HttpToolDefinition, error)
func (*Queries) DangerouslyClearDeploymentHTTPSecurity ¶
func (*Queries) DangerouslyClearDeploymentTools ¶
func (*Queries) DescribeDeploymentPackages ¶
func (*Queries) GetActiveDeploymentID ¶
func (*Queries) GetDeployment ¶
func (q *Queries) GetDeployment(ctx context.Context, arg GetDeploymentParams) (GetDeploymentRow, error)
func (*Queries) GetDeploymentByIdempotencyKey ¶
func (q *Queries) GetDeploymentByIdempotencyKey(ctx context.Context, arg GetDeploymentByIdempotencyKeyParams) (GetDeploymentByIdempotencyKeyRow, error)
func (*Queries) GetDeploymentFunctions ¶
func (q *Queries) GetDeploymentFunctions(ctx context.Context, arg GetDeploymentFunctionsParams) ([]DeploymentsFunction, error)
func (*Queries) GetDeploymentFunctionsWithoutAccess ¶
func (*Queries) GetDeploymentLogs ¶
func (q *Queries) GetDeploymentLogs(ctx context.Context, arg GetDeploymentLogsParams) ([]GetDeploymentLogsRow, error)
func (*Queries) GetDeploymentOpenAPIv3 ¶
func (*Queries) GetDeploymentWithAssets ¶
func (q *Queries) GetDeploymentWithAssets(ctx context.Context, arg GetDeploymentWithAssetsParams) ([]GetDeploymentWithAssetsRow, error)
func (*Queries) GetFunctionCredentialsBatch ¶
func (q *Queries) GetFunctionCredentialsBatch(ctx context.Context, arg GetFunctionCredentialsBatchParams) ([]GetFunctionCredentialsBatchRow, error)
func (*Queries) GetLatestDeploymentID ¶
func (*Queries) ListDeployments ¶
func (q *Queries) ListDeployments(ctx context.Context, arg ListDeploymentsParams) ([]ListDeploymentsRow, error)
func (*Queries) LogDeploymentEvent ¶
func (q *Queries) LogDeploymentEvent(ctx context.Context, arg LogDeploymentEventParams) error
func (*Queries) TransitionDeployment ¶
func (q *Queries) TransitionDeployment(ctx context.Context, arg TransitionDeploymentParams) (TransitionDeploymentRow, error)
func (*Queries) UpsertDeploymentFunctionsAsset ¶
func (q *Queries) UpsertDeploymentFunctionsAsset(ctx context.Context, arg UpsertDeploymentFunctionsAssetParams) (UpsertDeploymentFunctionsAssetRow, error)
func (*Queries) UpsertDeploymentOpenAPIv3Asset ¶
func (q *Queries) UpsertDeploymentOpenAPIv3Asset(ctx context.Context, arg UpsertDeploymentOpenAPIv3AssetParams) (UpsertDeploymentOpenAPIv3AssetRow, error)
func (*Queries) UpsertDeploymentPackage ¶
type TransitionDeploymentRow ¶
Click to show internal directories.
Click to hide internal directories.