server

package
v0.8.3 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2024 License: MIT Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrorHandler

func ErrorHandler() gin.HandlerFunc

func Run

func Run() error

func SetUpRouter

func SetUpRouter() *gin.Engine

Types

type Aws

type Aws struct {
	AccessKeyId     string `json:"access_key_id"`
	SecretAccessKey string `json:"secret_access_key"`
}

type Azure

type Azure struct {
	TenantId       string `json:"tenant_id"`
	ClientId       string `json:"client_id"`
	ClientSecret   string `json:"client_secret"`
	StorageAccount string `json:"storage_account"`
	SubscriptionId string `json:"subscription_id"`
}

type Configuration

type Configuration struct {
	Workspace            WorkspaceConfiguration            `json:"workspace"`
	Git                  GitConfiguration                  `json:"git"`
	ContextConfiguration map[string]map[string]interface{} `json:"context_configuration,omitempty"`
	Buckets              []string                          `json:"buckets"`
	Domains              []string                          `json:"domains"`
}

type ConfigurationUpdate

type ConfigurationUpdate struct {
	Configuration map[string]map[string]interface{} `json:"configuration,omitempty"`
	Buckets       []string                          `json:"buckets"`
	Domains       []string                          `json:"domains"`
	Bundles       []*manifest.Bundle                `json:"bundles"`
}

type Credentials

type Credentials struct {
	Aws   *Aws   `json:"aws"`
	Gcp   *Gcp   `json:"gcp"`
	Azure *Azure `json:"azure"`
}

type Gcp

type Gcp struct {
	ApplicationCredentials string `json:"application_credentials"`
}

type GitConfiguration

type GitConfiguration struct {
	Url    string `json:"url,omitempty"`
	Root   string `json:"root,omitempty"`
	Name   string `json:"name,omitempty"`
	Branch string `json:"branch,omitempty"`
}

type GitInfo

type GitInfo struct {
	Username string `json:"username"`
	Email    string `json:"email"`
}

type NetworkConfiguration

type NetworkConfiguration struct {
	PluralDns bool   `json:"plural_dns,omitempty"`
	Subdomain string `json:"subdomain,omitempty"`
}

type SetupRequest

type SetupRequest struct {
	Workspace     *Workspace   `json:"workspace"`
	Credentials   *Credentials `json:"credentials"`
	User          *User        `json:"user"`
	Provider      string       `json:"provider"`
	AesKey        string       `json:"aes_key"`
	GitUrl        string       `json:"git_url"`
	GitInfo       *GitInfo     `json:"git_info"`
	SshPublicKey  string       `json:"ssh_public_key"`
	SshPrivateKey string       `json:"ssh_private_key"`
	IsDemo        bool         `json:"is_demo"`
	Context       map[string]interface{}
}

type User

type User struct {
	GitUser     string `json:"gitUser"`
	Email       string `json:"email"`
	Name        string `json:"name"`
	AccessToken string `json:"access_token"`
}

type Workspace

type Workspace struct {
	Cluster      string `json:"cluster"`
	Project      string `json:"project"`
	Region       string `json:"region"`
	Bucket       string `json:"bucket"`
	BucketPrefix string `json:"bucket_prefix"`
	Subdomain    string `json:"subdomain"`
}

type WorkspaceConfiguration

type WorkspaceConfiguration struct {
	Network      *NetworkConfiguration `json:"network,omitempty"`
	BucketPrefix string                `json:"bucket_prefix,omitempty"`
	Cluster      string                `json:"cluster,omitempty"`
}

Jump to

Keyboard shortcuts

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