models

package
v1.0.0-alpha.19 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package models is a generated protocol buffer package.

It is generated from these files:

types.proto

It has these top-level messages:

App
Build
Release
Resource
ResourceVar
EnvConfig
Process
Formation
ResourceLimits
DockerCred

Index

Constants

View Source
const (
	StatusCreated = "created"
)

Variables

View Source
var (
	ConfigPath, ApprcPath string
	SvaFilename           = "sva.json"
	AwsCredentialFile     = "credentials.csv"
	AwsKeyPemPath         = "key.pem"
	SortableTime          = "20060102.150405.000000000"
)
View Source
var (
	ErrInvalidLengthTypes = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTypes   = fmt.Errorf("proto: integer overflow")
)

Functions

This section is empty.

Types

type App

type App struct {
	Name      string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty" datastore:"name"`
	Status    string   `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty" datastore:"status"`
	ReleaseId string   `protobuf:"bytes,3,opt,name=release_id,json=releaseId,proto3" json:"release_id,omitempty" datastore:"release_id,noindex"`
	Endpoint  string   `protobuf:"bytes,4,opt,name=endpoint,proto3" json:"endpoint,omitempty" datastore:"endpoint,noindex"`
	BuildId   string   `protobuf:"bytes,5,opt,name=build_id,json=buildId,proto3" json:"build_id,omitempty" datastore:"build_id,noindex"`
	Domains   []string `protobuf:"bytes,6,rep,name=domains" json:"domains,omitempty" datastore:"domains,noindex"`
	Resources []string `protobuf:"bytes,7,rep,name=resources" json:"resources,omitempty" datastore:"resources,noindex"`
	RepoUrl   string   `protobuf:"bytes,8,opt,name=repo_url,json=repoUrl,proto3" json:"repo_url,omitempty" datastore:"repo_url,noindex"`
}

func (*App) Descriptor

func (*App) Descriptor() ([]byte, []int)

func (*App) GetBuildId

func (m *App) GetBuildId() string

func (*App) GetDomains

func (m *App) GetDomains() []string

func (*App) GetEndpoint

func (m *App) GetEndpoint() string

func (*App) GetName

func (m *App) GetName() string

func (*App) GetReleaseId

func (m *App) GetReleaseId() string

func (*App) GetRepoUrl

func (m *App) GetRepoUrl() string

func (*App) GetResources

func (m *App) GetResources() []string

func (*App) GetStatus

func (m *App) GetStatus() string

func (*App) Marshal

func (m *App) Marshal() (dAtA []byte, err error)

func (*App) MarshalTo

func (m *App) MarshalTo(dAtA []byte) (int, error)

func (*App) ProtoMessage

func (*App) ProtoMessage()

func (*App) Reset

func (m *App) Reset()

func (*App) Size

func (m *App) Size() (n int)

func (*App) String

func (m *App) String() string

func (*App) Unmarshal

func (m *App) Unmarshal(dAtA []byte) error

type AppCreateOptions

type AppCreateOptions struct {
	RepoUrl string
	Auth    map[string]string
}

type AppDomains

type AppDomains []string

type Apps

type Apps []*App

type Build

type Build struct {
	Id        string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty" datastore:"id"`
	App       string `protobuf:"bytes,2,opt,name=app,proto3" json:"app,omitempty" datastore:"app"`
	RemoteId  string `protobuf:"bytes,3,opt,name=remote_id,json=remoteId,proto3" json:"remote_id,omitempty" datastore:"remote_id,noindex"`
	Status    string `protobuf:"bytes,4,opt,name=status,proto3" json:"status,omitempty" datastore:"status"`
	CreatedAt int64  `protobuf:"varint,5,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty" datastore:"created_at"`
	Procfile  []byte `protobuf:"bytes,6,opt,name=procfile,proto3" json:"procfile,omitempty" datastore:"procfile,noindex"`
	Version   string `protobuf:"bytes,7,opt,name=version,proto3" json:"version,omitempty" datastore:"version,noindex"`
}

func (*Build) Descriptor

func (*Build) Descriptor() ([]byte, []int)

func (*Build) GetApp

func (m *Build) GetApp() string

func (*Build) GetCreatedAt

func (m *Build) GetCreatedAt() int64

func (*Build) GetId

func (m *Build) GetId() string

func (*Build) GetProcfile

func (m *Build) GetProcfile() []byte

func (*Build) GetRemoteId

func (m *Build) GetRemoteId() string

func (*Build) GetStatus

func (m *Build) GetStatus() string

func (*Build) GetVersion

func (m *Build) GetVersion() string

func (*Build) Marshal

func (m *Build) Marshal() (dAtA []byte, err error)

func (*Build) MarshalTo

func (m *Build) MarshalTo(dAtA []byte) (int, error)

func (*Build) ProtoMessage

func (*Build) ProtoMessage()

func (*Build) Reset

func (m *Build) Reset()

func (*Build) Size

func (m *Build) Size() (n int)

func (*Build) String

func (m *Build) String() string

func (*Build) Unmarshal

func (m *Build) Unmarshal(dAtA []byte) error

type Builds

type Builds []*Build

type CreateBuildOptions

type CreateBuildOptions struct {
	Version     string
	Author      string
	Description string
	Procfile    []byte
	DockerTag   string
	Trigger     bool // trigger the build in the cloud (in gcp-cloudbuild or aws-codebuild)
}

type DockerCred

type DockerCred struct {
	Host     string `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"`
	Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
	Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"`
}

func (*DockerCred) Descriptor

func (*DockerCred) Descriptor() ([]byte, []int)

func (*DockerCred) GetHost

func (m *DockerCred) GetHost() string

func (*DockerCred) GetPassword

func (m *DockerCred) GetPassword() string

func (*DockerCred) GetUsername

func (m *DockerCred) GetUsername() string

func (*DockerCred) Marshal

func (m *DockerCred) Marshal() (dAtA []byte, err error)

func (*DockerCred) MarshalTo

func (m *DockerCred) MarshalTo(dAtA []byte) (int, error)

func (*DockerCred) ProtoMessage

func (*DockerCred) ProtoMessage()

func (*DockerCred) Reset

func (m *DockerCred) Reset()

func (*DockerCred) Size

func (m *DockerCred) Size() (n int)

func (*DockerCred) String

func (m *DockerCred) String() string

func (*DockerCred) Unmarshal

func (m *DockerCred) Unmarshal(dAtA []byte) error

type EnvConfig

type EnvConfig struct {
	Data map[string]string `` /* 142-byte string literal not displayed */
}

func (*EnvConfig) Descriptor

func (*EnvConfig) Descriptor() ([]byte, []int)

func (*EnvConfig) GetData

func (m *EnvConfig) GetData() map[string]string

func (*EnvConfig) Marshal

func (m *EnvConfig) Marshal() (dAtA []byte, err error)

func (*EnvConfig) MarshalTo

func (m *EnvConfig) MarshalTo(dAtA []byte) (int, error)

func (*EnvConfig) ProtoMessage

func (*EnvConfig) ProtoMessage()

func (*EnvConfig) Reset

func (m *EnvConfig) Reset()

func (*EnvConfig) Size

func (m *EnvConfig) Size() (n int)

func (*EnvConfig) String

func (m *EnvConfig) String() string

func (*EnvConfig) Unmarshal

func (m *EnvConfig) Unmarshal(dAtA []byte) error

type Environment

type Environment map[string]string

type Formation

type Formation struct {
	App       string           `protobuf:"bytes,1,opt,name=app,proto3" json:"app,omitempty"`
	Structure map[string]int32 `` /* 153-byte string literal not displayed */
}

func (*Formation) Descriptor

func (*Formation) Descriptor() ([]byte, []int)

func (*Formation) GetApp

func (m *Formation) GetApp() string

func (*Formation) GetStructure

func (m *Formation) GetStructure() map[string]int32

func (*Formation) Marshal

func (m *Formation) Marshal() (dAtA []byte, err error)

func (*Formation) MarshalTo

func (m *Formation) MarshalTo(dAtA []byte) (int, error)

func (*Formation) ProtoMessage

func (*Formation) ProtoMessage()

func (*Formation) Reset

func (m *Formation) Reset()

func (*Formation) Size

func (m *Formation) Size() (n int)

func (*Formation) String

func (m *Formation) String() string

func (*Formation) Unmarshal

func (m *Formation) Unmarshal(dAtA []byte) error

type LogStreamOptions

type LogStreamOptions struct {
	Follow    bool
	Proctype  string
	Since     time.Duration
	TailLines string // number of recent lines to show for streaming (string format)
}

type Process

type Process struct {
	Proctype string   `protobuf:"bytes,1,opt,name=proctype,proto3" json:"proctype,omitempty"`
	Count    int32    `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"`
	Status   string   `protobuf:"bytes,3,opt,name=status,proto3" json:"status,omitempty"`
	Cpu      string   `protobuf:"bytes,4,opt,name=cpu,proto3" json:"cpu,omitempty"`
	Memory   string   `protobuf:"bytes,5,opt,name=memory,proto3" json:"memory,omitempty"`
	Command  []string `protobuf:"bytes,6,rep,name=command" json:"command,omitempty"`
	CronExpr string   `protobuf:"bytes,7,opt,name=cron_expr,json=cronExpr,proto3" json:"cron_expr,omitempty"`
}

func (*Process) Descriptor

func (*Process) Descriptor() ([]byte, []int)

func (*Process) GetCommand

func (m *Process) GetCommand() []string

func (*Process) GetCount

func (m *Process) GetCount() int32

func (*Process) GetCpu

func (m *Process) GetCpu() string

func (*Process) GetCronExpr

func (m *Process) GetCronExpr() string

func (*Process) GetMemory

func (m *Process) GetMemory() string

func (*Process) GetProctype

func (m *Process) GetProctype() string

func (*Process) GetStatus

func (m *Process) GetStatus() string

func (*Process) Marshal

func (m *Process) Marshal() (dAtA []byte, err error)

func (*Process) MarshalTo

func (m *Process) MarshalTo(dAtA []byte) (int, error)

func (*Process) ProtoMessage

func (*Process) ProtoMessage()

func (*Process) Reset

func (m *Process) Reset()

func (*Process) Size

func (m *Process) Size() (n int)

func (*Process) String

func (m *Process) String() string

func (*Process) Unmarshal

func (m *Process) Unmarshal(dAtA []byte) error

type ProcessList

type ProcessList []*Process

type ProcessRunOptions

type ProcessRunOptions struct {
	Entrypoint    []string
	Tty           bool
	Detach        bool
	Width, Height int
}

type ProcfileMap

type ProcfileMap map[string]string

type Release

type Release struct {
	Id        string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty" datastore:"id"`
	App       string `protobuf:"bytes,2,opt,name=app,proto3" json:"app,omitempty" datastore:"app"`
	BuildId   string `protobuf:"bytes,3,opt,name=build_id,json=buildId,proto3" json:"build_id,omitempty" datastore:"build_id,noindex"`
	Status    string `protobuf:"bytes,4,opt,name=status,proto3" json:"status,omitempty" datastore:"status,noindex"`
	CreatedAt int64  `protobuf:"varint,5,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty" datastore:"created_at,noindex"`
	Version   int64  `protobuf:"varint,6,opt,name=version,proto3" json:"version,omitempty" datastore:"version,noindex"`
}

func (*Release) Descriptor

func (*Release) Descriptor() ([]byte, []int)

func (*Release) GetApp

func (m *Release) GetApp() string

func (*Release) GetBuildId

func (m *Release) GetBuildId() string

func (*Release) GetCreatedAt

func (m *Release) GetCreatedAt() int64

func (*Release) GetId

func (m *Release) GetId() string

func (*Release) GetStatus

func (m *Release) GetStatus() string

func (*Release) GetVersion

func (m *Release) GetVersion() int64

func (*Release) Marshal

func (m *Release) Marshal() (dAtA []byte, err error)

func (*Release) MarshalTo

func (m *Release) MarshalTo(dAtA []byte) (int, error)

func (*Release) ProtoMessage

func (*Release) ProtoMessage()

func (*Release) Reset

func (m *Release) Reset()

func (*Release) Size

func (m *Release) Size() (n int)

func (*Release) String

func (m *Release) String() string

func (*Release) Unmarshal

func (m *Release) Unmarshal(dAtA []byte) error

type ReleaseOptions

type ReleaseOptions struct {
	Port   int
	Env    string
	Wait   bool
	Domain string
	Expose bool // should be expose the service to the public
}

type Releases

type Releases []*Release

type Resource

type Resource struct {
	Name         string            `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty" datastore:"name"`
	Kind         string            `protobuf:"bytes,2,opt,name=kind,proto3" json:"kind,omitempty" datastore:"kind"`
	Status       string            `protobuf:"bytes,3,opt,name=status,proto3" json:"status,omitempty" datastore:"status,noindex"`
	StatusReason string            `` /* 131-byte string literal not displayed */
	URL          string            `protobuf:"bytes,5,opt,name=URL,proto3" json:"URL,omitempty" datastore:"URL,noindex"`
	Stack        string            `protobuf:"bytes,6,opt,name=stack,proto3" json:"stack,omitempty" datastore:"-"`
	Apps         []string          `protobuf:"bytes,7,rep,name=apps" json:"apps,omitempty" datastore:"apps,noindex"`
	Exports      map[string]string `` /* 176-byte string literal not displayed */
	Parameters   map[string]string `` /* 185-byte string literal not displayed */
	Outputs      map[string]string `` /* 163-byte string literal not displayed */
	Tags         map[string]string `` /* 157-byte string literal not displayed */
}

func (*Resource) Descriptor

func (*Resource) Descriptor() ([]byte, []int)

func (*Resource) GetApps

func (m *Resource) GetApps() []string

func (*Resource) GetExports

func (m *Resource) GetExports() map[string]string

func (*Resource) GetKind

func (m *Resource) GetKind() string

func (*Resource) GetName

func (m *Resource) GetName() string

func (*Resource) GetOutputs

func (m *Resource) GetOutputs() map[string]string

func (*Resource) GetParameters

func (m *Resource) GetParameters() map[string]string

func (*Resource) GetStack

func (m *Resource) GetStack() string

func (*Resource) GetStatus

func (m *Resource) GetStatus() string

func (*Resource) GetStatusReason

func (m *Resource) GetStatusReason() string

func (*Resource) GetTags

func (m *Resource) GetTags() map[string]string

func (*Resource) GetURL

func (m *Resource) GetURL() string

func (*Resource) Marshal

func (m *Resource) Marshal() (dAtA []byte, err error)

func (*Resource) MarshalTo

func (m *Resource) MarshalTo(dAtA []byte) (int, error)

func (*Resource) ProtoMessage

func (*Resource) ProtoMessage()

func (*Resource) Reset

func (m *Resource) Reset()

func (*Resource) Size

func (m *Resource) Size() (n int)

func (*Resource) String

func (m *Resource) String() string

func (*Resource) Unmarshal

func (m *Resource) Unmarshal(dAtA []byte) error

type ResourceLimits

type ResourceLimits struct {
	App      string            `protobuf:"bytes,1,opt,name=app,proto3" json:"app,omitempty"`
	Proctype string            `protobuf:"bytes,2,opt,name=proctype,proto3" json:"proctype,omitempty"`
	Limits   map[string]string `` /* 146-byte string literal not displayed */
}

func (*ResourceLimits) Descriptor

func (*ResourceLimits) Descriptor() ([]byte, []int)

func (*ResourceLimits) GetApp

func (m *ResourceLimits) GetApp() string

func (*ResourceLimits) GetLimits

func (m *ResourceLimits) GetLimits() map[string]string

func (*ResourceLimits) GetProctype

func (m *ResourceLimits) GetProctype() string

func (*ResourceLimits) Marshal

func (m *ResourceLimits) Marshal() (dAtA []byte, err error)

func (*ResourceLimits) MarshalTo

func (m *ResourceLimits) MarshalTo(dAtA []byte) (int, error)

func (*ResourceLimits) ProtoMessage

func (*ResourceLimits) ProtoMessage()

func (*ResourceLimits) Reset

func (m *ResourceLimits) Reset()

func (*ResourceLimits) Size

func (m *ResourceLimits) Size() (n int)

func (*ResourceLimits) String

func (m *ResourceLimits) String() string

func (*ResourceLimits) Unmarshal

func (m *ResourceLimits) Unmarshal(dAtA []byte) error

type ResourceVar

type ResourceVar struct {
	Key   string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
}

func (*ResourceVar) Descriptor

func (*ResourceVar) Descriptor() ([]byte, []int)

func (*ResourceVar) GetKey

func (m *ResourceVar) GetKey() string

func (*ResourceVar) GetValue

func (m *ResourceVar) GetValue() string

func (*ResourceVar) Marshal

func (m *ResourceVar) Marshal() (dAtA []byte, err error)

func (*ResourceVar) MarshalTo

func (m *ResourceVar) MarshalTo(dAtA []byte) (int, error)

func (*ResourceVar) ProtoMessage

func (*ResourceVar) ProtoMessage()

func (*ResourceVar) Reset

func (m *ResourceVar) Reset()

func (*ResourceVar) Size

func (m *ResourceVar) Size() (n int)

func (*ResourceVar) String

func (m *ResourceVar) String() string

func (*ResourceVar) Unmarshal

func (m *ResourceVar) Unmarshal(dAtA []byte) error

type Resources

type Resources []*Resource

Jump to

Keyboard shortcuts

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