server

package
v0.0.0-...-ebe2018 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2018 License: MIT Imports: 32 Imported by: 0

Documentation

Overview

Package server is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	EXT = ".tf.json"
)

Variables

View Source
var Errors_name = map[int32]string{
	0: "NOT_ALLOWED",
	1: "NOT_FOUND",
	2: "LOCKED",
	3: "INTERNAL_ERROR",
	4: "INVALID_VALUE",
	5: "MISSING_VALUE",
}
View Source
var Errors_value = map[string]int32{
	"NOT_ALLOWED":    0,
	"NOT_FOUND":      1,
	"LOCKED":         2,
	"INTERNAL_ERROR": 3,
	"INVALID_VALUE":  4,
	"MISSING_VALUE":  5,
}
View Source
var JobState_name = map[int32]string{
	0: "PENDING",
	1: "RUNNING",
	2: "FAILED",
	3: "ABORTED",
	4: "DONE",
	5: "ERROR",
}
View Source
var JobState_value = map[string]int32{
	"PENDING": 0,
	"RUNNING": 1,
	"FAILED":  2,
	"ABORTED": 3,
	"DONE":    4,
	"ERROR":   5,
}
View Source
var Operation_name = map[int32]string{
	0: "APPLY",
	1: "DESTROY",
}
View Source
var Operation_value = map[string]int32{
	"APPLY":   0,
	"DESTROY": 1,
}
View Source
var Status_name = map[int32]string{
	0: "INACTIVE",
	1: "ACTIVE",
}
View Source
var Status_value = map[string]int32{
	"INACTIVE": 0,
	"ACTIVE":   1,
}

Functions

func RegisterTessellateHandler

func RegisterTessellateHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterTessellateHandler registers the http handlers for service Tessellate to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterTessellateHandlerClient

func RegisterTessellateHandlerClient(ctx context.Context, mux *runtime.ServeMux, client TessellateClient) error

RegisterTessellateHandlerClient registers the http handlers for service Tessellate to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "TessellateClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "TessellateClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "TessellateClient" to call the correct interceptors.

func RegisterTessellateHandlerFromEndpoint

func RegisterTessellateHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterTessellateHandlerFromEndpoint is same as RegisterTessellateHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterTessellateServer

func RegisterTessellateServer(s *grpc.Server, srv TessellateServer)

Types

type ApplyLayoutRequest

type ApplyLayoutRequest struct {
	WorkspaceId          string   `protobuf:"bytes,1,opt,name=WorkspaceId,proto3" json:"WorkspaceId,omitempty"`
	Id                   string   `protobuf:"bytes,2,opt,name=Id,proto3" json:"Id,omitempty"`
	Vars                 []byte   `protobuf:"bytes,3,opt,name=Vars,proto3" json:"Vars,omitempty"`
	Dry                  bool     `protobuf:"varint,4,opt,name=dry,proto3" json:"dry,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ApplyLayoutRequest) Descriptor

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

func (*ApplyLayoutRequest) GetDry

func (m *ApplyLayoutRequest) GetDry() bool

func (*ApplyLayoutRequest) GetId

func (m *ApplyLayoutRequest) GetId() string

func (*ApplyLayoutRequest) GetVars

func (m *ApplyLayoutRequest) GetVars() []byte

func (*ApplyLayoutRequest) GetWorkspaceId

func (m *ApplyLayoutRequest) GetWorkspaceId() string

func (*ApplyLayoutRequest) ProtoMessage

func (*ApplyLayoutRequest) ProtoMessage()

func (*ApplyLayoutRequest) Reset

func (m *ApplyLayoutRequest) Reset()

func (*ApplyLayoutRequest) String

func (m *ApplyLayoutRequest) String() string

func (*ApplyLayoutRequest) Validate

func (m *ApplyLayoutRequest) Validate() error

Validate checks the field values on ApplyLayoutRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*ApplyLayoutRequest) XXX_DiscardUnknown

func (m *ApplyLayoutRequest) XXX_DiscardUnknown()

func (*ApplyLayoutRequest) XXX_Marshal

func (m *ApplyLayoutRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ApplyLayoutRequest) XXX_Merge

func (dst *ApplyLayoutRequest) XXX_Merge(src proto.Message)

func (*ApplyLayoutRequest) XXX_Size

func (m *ApplyLayoutRequest) XXX_Size() int

func (*ApplyLayoutRequest) XXX_Unmarshal

func (m *ApplyLayoutRequest) XXX_Unmarshal(b []byte) error

type ApplyLayoutRequestValidationError

type ApplyLayoutRequestValidationError struct {
	Field  string
	Reason string
	Cause  error
	Key    bool
}

ApplyLayoutRequestValidationError is the validation error returned by ApplyLayoutRequest.Validate if the designated constraints aren't met.

func (ApplyLayoutRequestValidationError) Error

Error satisfies the builtin error interface

type DestroyLayoutRequest

type DestroyLayoutRequest struct {
	WorkspaceId          string   `protobuf:"bytes,1,opt,name=WorkspaceId,proto3" json:"WorkspaceId,omitempty"`
	Id                   string   `protobuf:"bytes,2,opt,name=Id,proto3" json:"Id,omitempty"`
	Vars                 []byte   `protobuf:"bytes,3,opt,name=Vars,proto3" json:"Vars,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*DestroyLayoutRequest) Descriptor

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

func (*DestroyLayoutRequest) GetId

func (m *DestroyLayoutRequest) GetId() string

func (*DestroyLayoutRequest) GetVars

func (m *DestroyLayoutRequest) GetVars() []byte

func (*DestroyLayoutRequest) GetWorkspaceId

func (m *DestroyLayoutRequest) GetWorkspaceId() string

func (*DestroyLayoutRequest) ProtoMessage

func (*DestroyLayoutRequest) ProtoMessage()

func (*DestroyLayoutRequest) Reset

func (m *DestroyLayoutRequest) Reset()

func (*DestroyLayoutRequest) String

func (m *DestroyLayoutRequest) String() string

func (*DestroyLayoutRequest) Validate

func (m *DestroyLayoutRequest) Validate() error

Validate checks the field values on DestroyLayoutRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*DestroyLayoutRequest) XXX_DiscardUnknown

func (m *DestroyLayoutRequest) XXX_DiscardUnknown()

func (*DestroyLayoutRequest) XXX_Marshal

func (m *DestroyLayoutRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DestroyLayoutRequest) XXX_Merge

func (dst *DestroyLayoutRequest) XXX_Merge(src proto.Message)

func (*DestroyLayoutRequest) XXX_Size

func (m *DestroyLayoutRequest) XXX_Size() int

func (*DestroyLayoutRequest) XXX_Unmarshal

func (m *DestroyLayoutRequest) XXX_Unmarshal(b []byte) error

type DestroyLayoutRequestValidationError

type DestroyLayoutRequestValidationError struct {
	Field  string
	Reason string
	Cause  error
	Key    bool
}

DestroyLayoutRequestValidationError is the validation error returned by DestroyLayoutRequest.Validate if the designated constraints aren't met.

func (DestroyLayoutRequestValidationError) Error

Error satisfies the builtin error interface

type Errors

type Errors int32
const (
	Errors_NOT_ALLOWED    Errors = 0
	Errors_NOT_FOUND      Errors = 1
	Errors_LOCKED         Errors = 2
	Errors_INTERNAL_ERROR Errors = 3
	Errors_INVALID_VALUE  Errors = 4
	Errors_MISSING_VALUE  Errors = 5
)

func (Errors) EnumDescriptor

func (Errors) EnumDescriptor() ([]byte, []int)

func (Errors) String

func (x Errors) String() string

type GetWorkspaceLayoutsRequest

type GetWorkspaceLayoutsRequest struct {
	Id                   string   `protobuf:"bytes,1,opt,name=Id,proto3" json:"Id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetWorkspaceLayoutsRequest) Descriptor

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

func (*GetWorkspaceLayoutsRequest) GetId

func (*GetWorkspaceLayoutsRequest) ProtoMessage

func (*GetWorkspaceLayoutsRequest) ProtoMessage()

func (*GetWorkspaceLayoutsRequest) Reset

func (m *GetWorkspaceLayoutsRequest) Reset()

func (*GetWorkspaceLayoutsRequest) String

func (m *GetWorkspaceLayoutsRequest) String() string

func (*GetWorkspaceLayoutsRequest) Validate

func (m *GetWorkspaceLayoutsRequest) Validate() error

Validate checks the field values on GetWorkspaceLayoutsRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*GetWorkspaceLayoutsRequest) XXX_DiscardUnknown

func (m *GetWorkspaceLayoutsRequest) XXX_DiscardUnknown()

func (*GetWorkspaceLayoutsRequest) XXX_Marshal

func (m *GetWorkspaceLayoutsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetWorkspaceLayoutsRequest) XXX_Merge

func (dst *GetWorkspaceLayoutsRequest) XXX_Merge(src proto.Message)

func (*GetWorkspaceLayoutsRequest) XXX_Size

func (m *GetWorkspaceLayoutsRequest) XXX_Size() int

func (*GetWorkspaceLayoutsRequest) XXX_Unmarshal

func (m *GetWorkspaceLayoutsRequest) XXX_Unmarshal(b []byte) error

type GetWorkspaceLayoutsRequestValidationError

type GetWorkspaceLayoutsRequestValidationError struct {
	Field  string
	Reason string
	Cause  error
	Key    bool
}

GetWorkspaceLayoutsRequestValidationError is the validation error returned by GetWorkspaceLayoutsRequest.Validate if the designated constraints aren't met.

func (GetWorkspaceLayoutsRequestValidationError) Error

Error satisfies the builtin error interface

type GetWorkspaceRequest

type GetWorkspaceRequest struct {
	Id                   string   `protobuf:"bytes,1,opt,name=Id,proto3" json:"Id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetWorkspaceRequest) Descriptor

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

func (*GetWorkspaceRequest) GetId

func (m *GetWorkspaceRequest) GetId() string

func (*GetWorkspaceRequest) ProtoMessage

func (*GetWorkspaceRequest) ProtoMessage()

func (*GetWorkspaceRequest) Reset

func (m *GetWorkspaceRequest) Reset()

func (*GetWorkspaceRequest) String

func (m *GetWorkspaceRequest) String() string

func (*GetWorkspaceRequest) Validate

func (m *GetWorkspaceRequest) Validate() error

Validate checks the field values on GetWorkspaceRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*GetWorkspaceRequest) XXX_DiscardUnknown

func (m *GetWorkspaceRequest) XXX_DiscardUnknown()

func (*GetWorkspaceRequest) XXX_Marshal

func (m *GetWorkspaceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetWorkspaceRequest) XXX_Merge

func (dst *GetWorkspaceRequest) XXX_Merge(src proto.Message)

func (*GetWorkspaceRequest) XXX_Size

func (m *GetWorkspaceRequest) XXX_Size() int

func (*GetWorkspaceRequest) XXX_Unmarshal

func (m *GetWorkspaceRequest) XXX_Unmarshal(b []byte) error

type GetWorkspaceRequestValidationError

type GetWorkspaceRequestValidationError struct {
	Field  string
	Reason string
	Cause  error
	Key    bool
}

GetWorkspaceRequestValidationError is the validation error returned by GetWorkspaceRequest.Validate if the designated constraints aren't met.

func (GetWorkspaceRequestValidationError) Error

Error satisfies the builtin error interface

type JobRequest

type JobRequest struct {
	Id                   string   `protobuf:"bytes,1,opt,name=Id,proto3" json:"Id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*JobRequest) Descriptor

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

func (*JobRequest) GetId

func (m *JobRequest) GetId() string

func (*JobRequest) ProtoMessage

func (*JobRequest) ProtoMessage()

func (*JobRequest) Reset

func (m *JobRequest) Reset()

func (*JobRequest) String

func (m *JobRequest) String() string

func (*JobRequest) Validate

func (m *JobRequest) Validate() error

Validate checks the field values on JobRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*JobRequest) XXX_DiscardUnknown

func (m *JobRequest) XXX_DiscardUnknown()

func (*JobRequest) XXX_Marshal

func (m *JobRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*JobRequest) XXX_Merge

func (dst *JobRequest) XXX_Merge(src proto.Message)

func (*JobRequest) XXX_Size

func (m *JobRequest) XXX_Size() int

func (*JobRequest) XXX_Unmarshal

func (m *JobRequest) XXX_Unmarshal(b []byte) error

type JobRequestValidationError

type JobRequestValidationError struct {
	Field  string
	Reason string
	Cause  error
	Key    bool
}

JobRequestValidationError is the validation error returned by JobRequest.Validate if the designated constraints aren't met.

func (JobRequestValidationError) Error

Error satisfies the builtin error interface

type JobState

type JobState int32
const (
	JobState_PENDING JobState = 0
	JobState_RUNNING JobState = 1
	JobState_FAILED  JobState = 2
	JobState_ABORTED JobState = 3
	JobState_DONE    JobState = 4
	JobState_ERROR   JobState = 5
)

func (JobState) EnumDescriptor

func (JobState) EnumDescriptor() ([]byte, []int)

func (JobState) String

func (x JobState) String() string

type JobStatus

type JobStatus struct {
	Id                   string   `protobuf:"bytes,1,opt,name=Id,proto3" json:"Id,omitempty"`
	Status               JobState `protobuf:"varint,2,opt,name=status,proto3,enum=tsocial.tessellate.server.JobState" json:"status,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*JobStatus) Descriptor

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

func (*JobStatus) GetId

func (m *JobStatus) GetId() string

func (*JobStatus) GetStatus

func (m *JobStatus) GetStatus() JobState

func (*JobStatus) ProtoMessage

func (*JobStatus) ProtoMessage()

func (*JobStatus) Reset

func (m *JobStatus) Reset()

func (*JobStatus) String

func (m *JobStatus) String() string

func (*JobStatus) Validate

func (m *JobStatus) Validate() error

Validate checks the field values on JobStatus with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*JobStatus) XXX_DiscardUnknown

func (m *JobStatus) XXX_DiscardUnknown()

func (*JobStatus) XXX_Marshal

func (m *JobStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*JobStatus) XXX_Merge

func (dst *JobStatus) XXX_Merge(src proto.Message)

func (*JobStatus) XXX_Size

func (m *JobStatus) XXX_Size() int

func (*JobStatus) XXX_Unmarshal

func (m *JobStatus) XXX_Unmarshal(b []byte) error

type JobStatusValidationError

type JobStatusValidationError struct {
	Field  string
	Reason string
	Cause  error
	Key    bool
}

JobStatusValidationError is the validation error returned by JobStatus.Validate if the designated constraints aren't met.

func (JobStatusValidationError) Error

func (e JobStatusValidationError) Error() string

Error satisfies the builtin error interface

type Layout

type Layout struct {
	Workspaceid          string   `protobuf:"bytes,1,opt,name=Workspaceid,proto3" json:"Workspaceid,omitempty"`
	Id                   string   `protobuf:"bytes,2,opt,name=Id,proto3" json:"Id,omitempty"`
	Plan                 []byte   `protobuf:"bytes,3,opt,name=Plan,proto3" json:"Plan,omitempty"`
	Status               Status   `protobuf:"varint,5,opt,name=Status,proto3,enum=tsocial.tessellate.server.Status" json:"Status,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Layout) Descriptor

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

func (*Layout) GetId

func (m *Layout) GetId() string

func (*Layout) GetPlan

func (m *Layout) GetPlan() []byte

func (*Layout) GetStatus

func (m *Layout) GetStatus() Status

func (*Layout) GetWorkspaceid

func (m *Layout) GetWorkspaceid() string

func (*Layout) ProtoMessage

func (*Layout) ProtoMessage()

func (*Layout) Reset

func (m *Layout) Reset()

func (*Layout) String

func (m *Layout) String() string

func (*Layout) Validate

func (m *Layout) Validate() error

Validate checks the field values on Layout with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*Layout) XXX_DiscardUnknown

func (m *Layout) XXX_DiscardUnknown()

func (*Layout) XXX_Marshal

func (m *Layout) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Layout) XXX_Merge

func (dst *Layout) XXX_Merge(src proto.Message)

func (*Layout) XXX_Size

func (m *Layout) XXX_Size() int

func (*Layout) XXX_Unmarshal

func (m *Layout) XXX_Unmarshal(b []byte) error

type LayoutRequest

type LayoutRequest struct {
	WorkspaceId          string   `protobuf:"bytes,1,opt,name=WorkspaceId,proto3" json:"WorkspaceId,omitempty"`
	Id                   string   `protobuf:"bytes,2,opt,name=Id,proto3" json:"Id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*LayoutRequest) Descriptor

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

func (*LayoutRequest) GetId

func (m *LayoutRequest) GetId() string

func (*LayoutRequest) GetWorkspaceId

func (m *LayoutRequest) GetWorkspaceId() string

func (*LayoutRequest) ProtoMessage

func (*LayoutRequest) ProtoMessage()

func (*LayoutRequest) Reset

func (m *LayoutRequest) Reset()

func (*LayoutRequest) String

func (m *LayoutRequest) String() string

func (*LayoutRequest) Validate

func (m *LayoutRequest) Validate() error

Validate checks the field values on LayoutRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*LayoutRequest) XXX_DiscardUnknown

func (m *LayoutRequest) XXX_DiscardUnknown()

func (*LayoutRequest) XXX_Marshal

func (m *LayoutRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*LayoutRequest) XXX_Merge

func (dst *LayoutRequest) XXX_Merge(src proto.Message)

func (*LayoutRequest) XXX_Size

func (m *LayoutRequest) XXX_Size() int

func (*LayoutRequest) XXX_Unmarshal

func (m *LayoutRequest) XXX_Unmarshal(b []byte) error

type LayoutRequestValidationError

type LayoutRequestValidationError struct {
	Field  string
	Reason string
	Cause  error
	Key    bool
}

LayoutRequestValidationError is the validation error returned by LayoutRequest.Validate if the designated constraints aren't met.

func (LayoutRequestValidationError) Error

Error satisfies the builtin error interface

type LayoutValidationError

type LayoutValidationError struct {
	Field  string
	Reason string
	Cause  error
	Key    bool
}

LayoutValidationError is the validation error returned by Layout.Validate if the designated constraints aren't met.

func (LayoutValidationError) Error

func (e LayoutValidationError) Error() string

Error satisfies the builtin error interface

type Layouts

type Layouts struct {
	Layouts              []*Layout `protobuf:"bytes,1,rep,name=layouts,proto3" json:"layouts,omitempty"`
	XXX_NoUnkeyedLiteral struct{}  `json:"-"`
	XXX_unrecognized     []byte    `json:"-"`
	XXX_sizecache        int32     `json:"-"`
}

func (*Layouts) Descriptor

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

func (*Layouts) GetLayouts

func (m *Layouts) GetLayouts() []*Layout

func (*Layouts) ProtoMessage

func (*Layouts) ProtoMessage()

func (*Layouts) Reset

func (m *Layouts) Reset()

func (*Layouts) String

func (m *Layouts) String() string

func (*Layouts) Validate

func (m *Layouts) Validate() error

Validate checks the field values on Layouts with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*Layouts) XXX_DiscardUnknown

func (m *Layouts) XXX_DiscardUnknown()

func (*Layouts) XXX_Marshal

func (m *Layouts) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Layouts) XXX_Merge

func (dst *Layouts) XXX_Merge(src proto.Message)

func (*Layouts) XXX_Size

func (m *Layouts) XXX_Size() int

func (*Layouts) XXX_Unmarshal

func (m *Layouts) XXX_Unmarshal(b []byte) error

type LayoutsValidationError

type LayoutsValidationError struct {
	Field  string
	Reason string
	Cause  error
	Key    bool
}

LayoutsValidationError is the validation error returned by Layouts.Validate if the designated constraints aren't met.

func (LayoutsValidationError) Error

func (e LayoutsValidationError) Error() string

Error satisfies the builtin error interface

type Ok

type Ok struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Ok) Descriptor

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

func (*Ok) ProtoMessage

func (*Ok) ProtoMessage()

func (*Ok) Reset

func (m *Ok) Reset()

func (*Ok) String

func (m *Ok) String() string

func (*Ok) Validate

func (m *Ok) Validate() error

Validate checks the field values on Ok with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*Ok) XXX_DiscardUnknown

func (m *Ok) XXX_DiscardUnknown()

func (*Ok) XXX_Marshal

func (m *Ok) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Ok) XXX_Merge

func (dst *Ok) XXX_Merge(src proto.Message)

func (*Ok) XXX_Size

func (m *Ok) XXX_Size() int

func (*Ok) XXX_Unmarshal

func (m *Ok) XXX_Unmarshal(b []byte) error

type OkValidationError

type OkValidationError struct {
	Field  string
	Reason string
	Cause  error
	Key    bool
}

OkValidationError is the validation error returned by Ok.Validate if the designated constraints aren't met.

func (OkValidationError) Error

func (e OkValidationError) Error() string

Error satisfies the builtin error interface

type Operation

type Operation int32
const (
	Operation_APPLY   Operation = 0
	Operation_DESTROY Operation = 1
)

func (Operation) EnumDescriptor

func (Operation) EnumDescriptor() ([]byte, []int)

func (Operation) String

func (x Operation) String() string

type SaveLayoutRequest

type SaveLayoutRequest struct {
	WorkspaceId          string   `protobuf:"bytes,1,opt,name=WorkspaceId,proto3" json:"WorkspaceId,omitempty"`
	Id                   string   `protobuf:"bytes,2,opt,name=Id,proto3" json:"Id,omitempty"`
	Plan                 []byte   `protobuf:"bytes,3,opt,name=Plan,proto3" json:"Plan,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*SaveLayoutRequest) Descriptor

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

func (*SaveLayoutRequest) GetId

func (m *SaveLayoutRequest) GetId() string

func (*SaveLayoutRequest) GetPlan

func (m *SaveLayoutRequest) GetPlan() []byte

func (*SaveLayoutRequest) GetWorkspaceId

func (m *SaveLayoutRequest) GetWorkspaceId() string

func (*SaveLayoutRequest) ProtoMessage

func (*SaveLayoutRequest) ProtoMessage()

func (*SaveLayoutRequest) Reset

func (m *SaveLayoutRequest) Reset()

func (*SaveLayoutRequest) String

func (m *SaveLayoutRequest) String() string

func (*SaveLayoutRequest) Validate

func (m *SaveLayoutRequest) Validate() error

Validate checks the field values on SaveLayoutRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*SaveLayoutRequest) XXX_DiscardUnknown

func (m *SaveLayoutRequest) XXX_DiscardUnknown()

func (*SaveLayoutRequest) XXX_Marshal

func (m *SaveLayoutRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SaveLayoutRequest) XXX_Merge

func (dst *SaveLayoutRequest) XXX_Merge(src proto.Message)

func (*SaveLayoutRequest) XXX_Size

func (m *SaveLayoutRequest) XXX_Size() int

func (*SaveLayoutRequest) XXX_Unmarshal

func (m *SaveLayoutRequest) XXX_Unmarshal(b []byte) error

type SaveLayoutRequestValidationError

type SaveLayoutRequestValidationError struct {
	Field  string
	Reason string
	Cause  error
	Key    bool
}

SaveLayoutRequestValidationError is the validation error returned by SaveLayoutRequest.Validate if the designated constraints aren't met.

func (SaveLayoutRequestValidationError) Error

Error satisfies the builtin error interface

type SaveWorkspaceRequest

type SaveWorkspaceRequest struct {
	Id                   string   `protobuf:"bytes,1,opt,name=Id,proto3" json:"Id,omitempty"`
	Providers            []byte   `protobuf:"bytes,2,opt,name=Providers,proto3" json:"Providers,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*SaveWorkspaceRequest) Descriptor

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

func (*SaveWorkspaceRequest) GetId

func (m *SaveWorkspaceRequest) GetId() string

func (*SaveWorkspaceRequest) GetProviders

func (m *SaveWorkspaceRequest) GetProviders() []byte

func (*SaveWorkspaceRequest) ProtoMessage

func (*SaveWorkspaceRequest) ProtoMessage()

func (*SaveWorkspaceRequest) Reset

func (m *SaveWorkspaceRequest) Reset()

func (*SaveWorkspaceRequest) String

func (m *SaveWorkspaceRequest) String() string

func (*SaveWorkspaceRequest) Validate

func (m *SaveWorkspaceRequest) Validate() error

Validate checks the field values on SaveWorkspaceRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*SaveWorkspaceRequest) XXX_DiscardUnknown

func (m *SaveWorkspaceRequest) XXX_DiscardUnknown()

func (*SaveWorkspaceRequest) XXX_Marshal

func (m *SaveWorkspaceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SaveWorkspaceRequest) XXX_Merge

func (dst *SaveWorkspaceRequest) XXX_Merge(src proto.Message)

func (*SaveWorkspaceRequest) XXX_Size

func (m *SaveWorkspaceRequest) XXX_Size() int

func (*SaveWorkspaceRequest) XXX_Unmarshal

func (m *SaveWorkspaceRequest) XXX_Unmarshal(b []byte) error

type SaveWorkspaceRequestValidationError

type SaveWorkspaceRequestValidationError struct {
	Field  string
	Reason string
	Cause  error
	Key    bool
}

SaveWorkspaceRequestValidationError is the validation error returned by SaveWorkspaceRequest.Validate if the designated constraints aren't met.

func (SaveWorkspaceRequestValidationError) Error

Error satisfies the builtin error interface

type Server

type Server struct {
	// contains filtered or unexported fields
}

func (*Server) AbortJob

func (s *Server) AbortJob(ctx context.Context, in *JobRequest) (*Ok, error)

AbortJob to halt.

func (*Server) ApplyLayout

func (s *Server) ApplyLayout(ctx context.Context, in *ApplyLayoutRequest) (*JobStatus, error)

ApplyLayout job.

func (*Server) DestroyLayout

func (s *Server) DestroyLayout(ctx context.Context, in *DestroyLayoutRequest) (*JobStatus, error)

DestroyLayout job.

func (*Server) GetLayout

func (s *Server) GetLayout(ctx context.Context, in *LayoutRequest) (*Layout, error)

GetLayout for given layout ID.

func (*Server) GetWorkspace

func (s *Server) GetWorkspace(ctx context.Context, in *GetWorkspaceRequest) (*Workspace, error)

GetWorkspace for the mentioned Workspace ID.

func (*Server) Internal_UnlockDead

func (s *Server) Internal_UnlockDead(ctx context.Context, in *UnlockDeadRequest) (*Ok, error)

func (*Server) SaveLayout

func (s *Server) SaveLayout(ctx context.Context, in *SaveLayoutRequest) (*Ok, error)

SaveLayout under the mentioned workspace ID.

func (*Server) SaveWorkspace

func (s *Server) SaveWorkspace(ctx context.Context, in *SaveWorkspaceRequest) (*Ok, error)

SaveWorkspace under workspaces/ .

func (*Server) StartWatch

func (s *Server) StartWatch(ctx context.Context, in *StartWatchRequest) (*Ok, error)

StartWatch to listen to state changes on a Layout

func (*Server) StopWatch

func (s *Server) StopWatch(ctx context.Context, in *StopWatchRequest) (*Ok, error)

Stop watch.

type SetLayoutStatusRequest

type SetLayoutStatusRequest struct {
	WorkspaceId          string   `protobuf:"bytes,1,opt,name=WorkspaceId,proto3" json:"WorkspaceId,omitempty"`
	Id                   string   `protobuf:"bytes,2,opt,name=Id,proto3" json:"Id,omitempty"`
	Status               string   `protobuf:"bytes,3,opt,name=Status,proto3" json:"Status,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*SetLayoutStatusRequest) Descriptor

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

func (*SetLayoutStatusRequest) GetId

func (m *SetLayoutStatusRequest) GetId() string

func (*SetLayoutStatusRequest) GetStatus

func (m *SetLayoutStatusRequest) GetStatus() string

func (*SetLayoutStatusRequest) GetWorkspaceId

func (m *SetLayoutStatusRequest) GetWorkspaceId() string

func (*SetLayoutStatusRequest) ProtoMessage

func (*SetLayoutStatusRequest) ProtoMessage()

func (*SetLayoutStatusRequest) Reset

func (m *SetLayoutStatusRequest) Reset()

func (*SetLayoutStatusRequest) String

func (m *SetLayoutStatusRequest) String() string

func (*SetLayoutStatusRequest) Validate

func (m *SetLayoutStatusRequest) Validate() error

Validate checks the field values on SetLayoutStatusRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*SetLayoutStatusRequest) XXX_DiscardUnknown

func (m *SetLayoutStatusRequest) XXX_DiscardUnknown()

func (*SetLayoutStatusRequest) XXX_Marshal

func (m *SetLayoutStatusRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SetLayoutStatusRequest) XXX_Merge

func (dst *SetLayoutStatusRequest) XXX_Merge(src proto.Message)

func (*SetLayoutStatusRequest) XXX_Size

func (m *SetLayoutStatusRequest) XXX_Size() int

func (*SetLayoutStatusRequest) XXX_Unmarshal

func (m *SetLayoutStatusRequest) XXX_Unmarshal(b []byte) error

type SetLayoutStatusRequestValidationError

type SetLayoutStatusRequestValidationError struct {
	Field  string
	Reason string
	Cause  error
	Key    bool
}

SetLayoutStatusRequestValidationError is the validation error returned by SetLayoutStatusRequest.Validate if the designated constraints aren't met.

func (SetLayoutStatusRequestValidationError) Error

Error satisfies the builtin error interface

type StartWatchRequest

type StartWatchRequest struct {
	WorkspaceId          string   `protobuf:"bytes,1,opt,name=WorkspaceId,proto3" json:"WorkspaceId,omitempty"`
	Id                   string   `protobuf:"bytes,2,opt,name=Id,proto3" json:"Id,omitempty"`
	SuccessCallback      string   `protobuf:"bytes,3,opt,name=SuccessCallback,proto3" json:"SuccessCallback,omitempty"`
	FailureCallback      string   `protobuf:"bytes,4,opt,name=FailureCallback,proto3" json:"FailureCallback,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*StartWatchRequest) Descriptor

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

func (*StartWatchRequest) GetFailureCallback

func (m *StartWatchRequest) GetFailureCallback() string

func (*StartWatchRequest) GetId

func (m *StartWatchRequest) GetId() string

func (*StartWatchRequest) GetSuccessCallback

func (m *StartWatchRequest) GetSuccessCallback() string

func (*StartWatchRequest) GetWorkspaceId

func (m *StartWatchRequest) GetWorkspaceId() string

func (*StartWatchRequest) ProtoMessage

func (*StartWatchRequest) ProtoMessage()

func (*StartWatchRequest) Reset

func (m *StartWatchRequest) Reset()

func (*StartWatchRequest) String

func (m *StartWatchRequest) String() string

func (*StartWatchRequest) Validate

func (m *StartWatchRequest) Validate() error

Validate checks the field values on StartWatchRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*StartWatchRequest) XXX_DiscardUnknown

func (m *StartWatchRequest) XXX_DiscardUnknown()

func (*StartWatchRequest) XXX_Marshal

func (m *StartWatchRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*StartWatchRequest) XXX_Merge

func (dst *StartWatchRequest) XXX_Merge(src proto.Message)

func (*StartWatchRequest) XXX_Size

func (m *StartWatchRequest) XXX_Size() int

func (*StartWatchRequest) XXX_Unmarshal

func (m *StartWatchRequest) XXX_Unmarshal(b []byte) error

type StartWatchRequestValidationError

type StartWatchRequestValidationError struct {
	Field  string
	Reason string
	Cause  error
	Key    bool
}

StartWatchRequestValidationError is the validation error returned by StartWatchRequest.Validate if the designated constraints aren't met.

func (StartWatchRequestValidationError) Error

Error satisfies the builtin error interface

type Status

type Status int32
const (
	Status_INACTIVE Status = 0
	Status_ACTIVE   Status = 1
)

func (Status) EnumDescriptor

func (Status) EnumDescriptor() ([]byte, []int)

func (Status) String

func (x Status) String() string

type StopWatchRequest

type StopWatchRequest struct {
	WorkspaceId          string   `protobuf:"bytes,1,opt,name=WorkspaceId,proto3" json:"WorkspaceId,omitempty"`
	Id                   string   `protobuf:"bytes,2,opt,name=Id,proto3" json:"Id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*StopWatchRequest) Descriptor

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

func (*StopWatchRequest) GetId

func (m *StopWatchRequest) GetId() string

func (*StopWatchRequest) GetWorkspaceId

func (m *StopWatchRequest) GetWorkspaceId() string

func (*StopWatchRequest) ProtoMessage

func (*StopWatchRequest) ProtoMessage()

func (*StopWatchRequest) Reset

func (m *StopWatchRequest) Reset()

func (*StopWatchRequest) String

func (m *StopWatchRequest) String() string

func (*StopWatchRequest) Validate

func (m *StopWatchRequest) Validate() error

Validate checks the field values on StopWatchRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*StopWatchRequest) XXX_DiscardUnknown

func (m *StopWatchRequest) XXX_DiscardUnknown()

func (*StopWatchRequest) XXX_Marshal

func (m *StopWatchRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*StopWatchRequest) XXX_Merge

func (dst *StopWatchRequest) XXX_Merge(src proto.Message)

func (*StopWatchRequest) XXX_Size

func (m *StopWatchRequest) XXX_Size() int

func (*StopWatchRequest) XXX_Unmarshal

func (m *StopWatchRequest) XXX_Unmarshal(b []byte) error

type StopWatchRequestValidationError

type StopWatchRequestValidationError struct {
	Field  string
	Reason string
	Cause  error
	Key    bool
}

StopWatchRequestValidationError is the validation error returned by StopWatchRequest.Validate if the designated constraints aren't met.

func (StopWatchRequestValidationError) Error

Error satisfies the builtin error interface

type TessellateClient

type TessellateClient interface {
	SaveWorkspace(ctx context.Context, in *SaveWorkspaceRequest, opts ...grpc.CallOption) (*Ok, error)
	GetWorkspace(ctx context.Context, in *GetWorkspaceRequest, opts ...grpc.CallOption) (*Workspace, error)
	SaveLayout(ctx context.Context, in *SaveLayoutRequest, opts ...grpc.CallOption) (*Ok, error)
	GetLayout(ctx context.Context, in *LayoutRequest, opts ...grpc.CallOption) (*Layout, error)
	ApplyLayout(ctx context.Context, in *ApplyLayoutRequest, opts ...grpc.CallOption) (*JobStatus, error)
	DestroyLayout(ctx context.Context, in *DestroyLayoutRequest, opts ...grpc.CallOption) (*JobStatus, error)
	AbortJob(ctx context.Context, in *JobRequest, opts ...grpc.CallOption) (*Ok, error)
	StartWatch(ctx context.Context, in *StartWatchRequest, opts ...grpc.CallOption) (*Ok, error)
	StopWatch(ctx context.Context, in *StopWatchRequest, opts ...grpc.CallOption) (*Ok, error)
	Internal_UnlockDead(ctx context.Context, in *UnlockDeadRequest, opts ...grpc.CallOption) (*Ok, error)
}

TessellateClient is the client API for Tessellate service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewTessellateClient

func NewTessellateClient(cc *grpc.ClientConn) TessellateClient

type TessellateServer

type TessellateServer interface {
	SaveWorkspace(context.Context, *SaveWorkspaceRequest) (*Ok, error)
	GetWorkspace(context.Context, *GetWorkspaceRequest) (*Workspace, error)
	SaveLayout(context.Context, *SaveLayoutRequest) (*Ok, error)
	GetLayout(context.Context, *LayoutRequest) (*Layout, error)
	ApplyLayout(context.Context, *ApplyLayoutRequest) (*JobStatus, error)
	DestroyLayout(context.Context, *DestroyLayoutRequest) (*JobStatus, error)
	AbortJob(context.Context, *JobRequest) (*Ok, error)
	StartWatch(context.Context, *StartWatchRequest) (*Ok, error)
	StopWatch(context.Context, *StopWatchRequest) (*Ok, error)
	Internal_UnlockDead(context.Context, *UnlockDeadRequest) (*Ok, error)
}

TessellateServer is the server API for Tessellate service.

func New

func New(store storage.Storer) TessellateServer

type UnlockDeadRequest

type UnlockDeadRequest struct {
	Token                string   `protobuf:"bytes,1,opt,name=Token,proto3" json:"Token,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*UnlockDeadRequest) Descriptor

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

func (*UnlockDeadRequest) GetToken

func (m *UnlockDeadRequest) GetToken() string

func (*UnlockDeadRequest) ProtoMessage

func (*UnlockDeadRequest) ProtoMessage()

func (*UnlockDeadRequest) Reset

func (m *UnlockDeadRequest) Reset()

func (*UnlockDeadRequest) String

func (m *UnlockDeadRequest) String() string

func (*UnlockDeadRequest) Validate

func (m *UnlockDeadRequest) Validate() error

Validate checks the field values on UnlockDeadRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*UnlockDeadRequest) XXX_DiscardUnknown

func (m *UnlockDeadRequest) XXX_DiscardUnknown()

func (*UnlockDeadRequest) XXX_Marshal

func (m *UnlockDeadRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*UnlockDeadRequest) XXX_Merge

func (dst *UnlockDeadRequest) XXX_Merge(src proto.Message)

func (*UnlockDeadRequest) XXX_Size

func (m *UnlockDeadRequest) XXX_Size() int

func (*UnlockDeadRequest) XXX_Unmarshal

func (m *UnlockDeadRequest) XXX_Unmarshal(b []byte) error

type UnlockDeadRequestValidationError

type UnlockDeadRequestValidationError struct {
	Field  string
	Reason string
	Cause  error
	Key    bool
}

UnlockDeadRequestValidationError is the validation error returned by UnlockDeadRequest.Validate if the designated constraints aren't met.

func (UnlockDeadRequestValidationError) Error

Error satisfies the builtin error interface

type Vars

type Vars struct {
	Vars                 []byte   `protobuf:"bytes,1,opt,name=Vars,proto3" json:"Vars,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Vars) Descriptor

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

func (*Vars) GetVars

func (m *Vars) GetVars() []byte

func (*Vars) ProtoMessage

func (*Vars) ProtoMessage()

func (*Vars) Reset

func (m *Vars) Reset()

func (*Vars) String

func (m *Vars) String() string

func (*Vars) Validate

func (m *Vars) Validate() error

Validate checks the field values on Vars with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*Vars) XXX_DiscardUnknown

func (m *Vars) XXX_DiscardUnknown()

func (*Vars) XXX_Marshal

func (m *Vars) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Vars) XXX_Merge

func (dst *Vars) XXX_Merge(src proto.Message)

func (*Vars) XXX_Size

func (m *Vars) XXX_Size() int

func (*Vars) XXX_Unmarshal

func (m *Vars) XXX_Unmarshal(b []byte) error

type VarsValidationError

type VarsValidationError struct {
	Field  string
	Reason string
	Cause  error
	Key    bool
}

VarsValidationError is the validation error returned by Vars.Validate if the designated constraints aren't met.

func (VarsValidationError) Error

func (e VarsValidationError) Error() string

Error satisfies the builtin error interface

type Workspace

type Workspace struct {
	Name                 string   `protobuf:"bytes,1,opt,name=Name,proto3" json:"Name,omitempty"`
	Vars                 []byte   `protobuf:"bytes,2,opt,name=Vars,proto3" json:"Vars,omitempty"`
	Version              string   `protobuf:"bytes,3,opt,name=Version,proto3" json:"Version,omitempty"`
	Versions             []string `protobuf:"bytes,4,rep,name=Versions,proto3" json:"Versions,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Workspace) Descriptor

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

func (*Workspace) GetName

func (m *Workspace) GetName() string

func (*Workspace) GetVars

func (m *Workspace) GetVars() []byte

func (*Workspace) GetVersion

func (m *Workspace) GetVersion() string

func (*Workspace) GetVersions

func (m *Workspace) GetVersions() []string

func (*Workspace) ProtoMessage

func (*Workspace) ProtoMessage()

func (*Workspace) Reset

func (m *Workspace) Reset()

func (*Workspace) String

func (m *Workspace) String() string

func (*Workspace) Validate

func (m *Workspace) Validate() error

Validate checks the field values on Workspace with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*Workspace) XXX_DiscardUnknown

func (m *Workspace) XXX_DiscardUnknown()

func (*Workspace) XXX_Marshal

func (m *Workspace) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Workspace) XXX_Merge

func (dst *Workspace) XXX_Merge(src proto.Message)

func (*Workspace) XXX_Size

func (m *Workspace) XXX_Size() int

func (*Workspace) XXX_Unmarshal

func (m *Workspace) XXX_Unmarshal(b []byte) error

type WorkspaceValidationError

type WorkspaceValidationError struct {
	Field  string
	Reason string
	Cause  error
	Key    bool
}

WorkspaceValidationError is the validation error returned by Workspace.Validate if the designated constraints aren't met.

func (WorkspaceValidationError) Error

func (e WorkspaceValidationError) Error() string

Error satisfies the builtin error interface

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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