Documentation
¶
Index ¶
- func CreateSchema(server string, env []Env) ([]Env, Schema)
- type About
- type AnyOf
- type Config
- type Container
- type Dynamic
- type Env
- type Items
- type Meta
- type OAuthProvider
- type Parameters
- type Properties
- type Property
- type Remote
- type Run
- type Schema
- type SchemaEntry
- type SchemaList
- type Secret
- type Server
- type Source
- type Tool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AnyOf ¶
type AnyOf struct {
Required []string `yaml:"required,omitempty" json:"required,omitempty"`
}
type Config ¶
type Config struct {
Description string `yaml:"description,omitempty" json:"description,omitempty"`
Secrets []Secret `yaml:"secrets,omitempty" json:"secrets,omitempty"`
Env []Env `yaml:"env,omitempty" json:"env,omitempty"`
Parameters Schema `yaml:"parameters,omitempty" json:"parameters,omitempty"`
AnyOf []AnyOf `yaml:"anyOf,omitempty" json:"anyOf,omitempty"`
}
type OAuthProvider ¶
type Parameters ¶
type Parameters struct {
Type string `yaml:"type" json:"type"`
Properties Properties `yaml:"properties" json:"properties"`
Required []string `yaml:"required" json:"required"`
}
type Properties ¶
type Run ¶
type Run struct {
Command []string `yaml:"command,omitempty" json:"command,omitempty"`
Volumes []string `yaml:"volumes,omitempty" json:"volumes,omitempty"`
User string `yaml:"user,omitempty" json:"user,omitempty"`
Env map[string]string `yaml:"env,omitempty" json:"env,omitempty"`
AllowHosts []string `yaml:"allowHosts,omitempty" json:"allowHosts,omitempty"`
DisableNetwork bool `yaml:"disableNetwork,omitempty" json:"disableNetwork,omitempty"`
}
type Schema ¶
type Schema struct {
Type string `yaml:"type" json:"type"`
Description string `yaml:"description,omitempty" json:"description,omitempty"`
Properties SchemaList `yaml:"properties,omitempty" json:"properties,omitempty"`
Required []string `yaml:"required,omitempty" json:"required,omitempty"`
Items Items `yaml:"items,omitempty" json:"items,omitempty"`
AnyOf []AnyOf `yaml:"anyOf,omitempty" json:"anyOf,omitempty"`
Default any `yaml:"default,omitempty" json:"default,omitempty"`
}
type SchemaEntry ¶
type SchemaList ¶
type SchemaList []SchemaEntry
func (SchemaList) MarshalYAML ¶
func (tl SchemaList) MarshalYAML() (interface{}, error)
func (*SchemaList) UnmarshalYAML ¶
func (tl *SchemaList) UnmarshalYAML(value *yaml.Node) error
type Secret ¶
type Secret struct {
Name string `yaml:"name" json:"name"`
Env string `yaml:"env" json:"env"`
Example string `yaml:"example,omitempty" json:"example,omitempty"`
Description string `yaml:"description,omitempty" json:"description,omitempty"`
Required *bool `yaml:"required,omitempty" json:"required,omitempty"`
}
func (Secret) MarshalJSON ¶
func (Secret) MarshalYAML ¶
type Server ¶
type Server struct {
Name string `yaml:"name" json:"name"`
Image string `yaml:"image,omitempty" json:"image,omitempty"`
Type string `yaml:"type" json:"type"`
Dynamic *Dynamic `yaml:"dynamic,omitempty" json:"dynamic,omitempty"`
LongLived bool `yaml:"longLived,omitempty" json:"longLived,omitempty"`
Meta Meta `yaml:"meta,omitempty" json:"meta,omitempty"`
About About `yaml:"about,omitempty" json:"about,omitempty"`
Source Source `yaml:"source,omitempty" json:"source,omitempty"`
Remote Remote `yaml:"remote,omitempty" json:"remote,omitempty"`
Run Run `yaml:"run,omitempty" json:"run,omitempty"`
Config Config `yaml:"config,omitempty" json:"config,omitempty"`
OAuth []OAuthProvider `yaml:"oauth,omitempty" json:"oauth,omitempty"`
Tools []Tool `yaml:"tools,omitempty" json:"tools,omitempty"`
Requirement string `yaml:"requirement,omitempty" json:"requirement,omitempty"`
}
func (*Server) GetContext ¶
func (*Server) GetDockerfile ¶
func (*Server) GetDockerfileUrl ¶
func (*Server) GetSourceURL ¶
func (*Server) GetUpstream ¶
type Source ¶
type Source struct {
Project string `yaml:"project,omitempty" json:"project,omitempty"`
Upstream string `yaml:"upstream,omitempty" json:"upstream,omitempty"`
Branch string `yaml:"branch,omitempty" json:"branch,omitempty"`
Commit string `yaml:"commit,omitempty" json:"commit,omitempty"`
Directory string `yaml:"directory,omitempty" json:"directory,omitempty"`
Dockerfile string `yaml:"dockerfile,omitempty" json:"dockerfile,omitempty"`
BuildTarget string `yaml:"buildTarget,omitempty" json:"buildTarget,omitempty"`
}
type Tool ¶
type Tool struct {
Name string `yaml:"name" json:"name"`
Description string `yaml:"description,omitempty" json:"description,omitempty"`
Parameters Parameters `yaml:"parameters,omitempty" json:"parameters,omitempty"`
Container Container `yaml:"container,omitempty" json:"container,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.