project

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2024 License: GPL-3.0 Imports: 0 Imported by: 14

Documentation

Overview

Contains database types for the project collection.

Index

Constants

View Source
const PROJECT_COLLECTION = "project"

Variables

This section is empty.

Functions

This section is empty.

Types

type BuildResult added in v0.1.10

type BuildResult struct {
	ExecutionIdentifier string `bson:"execution_identifier"`
	Timepoint           int64  `bson:"timepoint"`
	Successful          bool   `bson:"successful"`
}

type CDNInfrastructure added in v0.2.0

type CDNInfrastructure struct {
	Enabled   bool   `bson:"enabled"`
	StackName string `bson:"stack_name"`
}

type DedicatedInfrastructure added in v0.1.14

type DedicatedInfrastructure struct {
	StackName      string `bson:"stack_name"`
	EventLogGroup  string `bson:"event_log_group"`
	BuildLogGroup  string `bson:"build_log_group"`
	DeployLogGroup string `bson:"deploy_log_group"`
	ServerLogGroup string `bson:"server_log_group"`
}

type DeploymentResult added in v0.1.11

type DeploymentResult struct {
	ExecutionIdentifier string `bson:"execution_identifier"`
	Timepoint           int64  `bson:"timepoint"`
	Successful          bool   `bson:"successful"`
}

type EventResult added in v0.1.11

type EventResult struct {
	ExecutionIdentifier string `bson:"execution_identifier"`
	Timepoint           int64  `bson:"timepoint"`
	Successful          bool   `bson:"successful"`
}

type Project

type Project struct {
	MongoID     interface{} `bson:"_id"`
	Name        string      `bson:"name"`
	OwnerId     string      `bson:"owner_id"`
	Deleted     bool        `bson:"deleted"`
	Initialized bool        `bson:"initialized"`
	Status      string      `bson:"status"`

	Repository           Repository       `bson:"repository"`
	BuildImage           string           `bson:"build_image"`
	BuildCommand         string           `bson:"build_command"`
	OutputDirectory      string           `bson:"output_directory"`
	LastEventResult      EventResult      `bson:"last_event_result"`
	LastBuildResult      BuildResult      `bson:"last_build_result"`
	LastDeploymentResult DeploymentResult `bson:"last_deployment_result"`

	PipelineLock            bool                    `bson:"pipeline_lock"`
	DedicatedInfrastructure DedicatedInfrastructure `bson:"dedicated_infrastructure"`
	SharedInfrastructure    SharedInfrastructure    `bson:"shared_infrastructure"`
	CDNInfrastructure       CDNInfrastructure       `bson:"cdn_infrastructure"`
}

type Repository added in v0.1.10

type Repository struct {
	Id     int64  `bson:"id"`
	URL    string `bson:"url"`
	Branch string `bson:"branch"`
}

type SharedInfrastructure added in v0.1.14

type SharedInfrastructure struct {
	ApiRoutePath         string            `bson:"api_route_path"`
	StaticBucketPath     string            `bson:"static_bucket_path"`
	BuildAssetBucketPath string            `bson:"build_asset_bucket_path"`
	RouteKeys            map[string]string `bson:"route_keys"`
	PrerenderPageKeys    map[string]string `bson:"prerender_page_keys"`
}

Jump to

Keyboard shortcuts

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