data

package
v0.0.0-...-bbbf429 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2017 License: GPL-3.0 Imports: 6 Imported by: 8

Documentation

Overview

Package data is a generated protocol buffer package.

It is generated from these files:

src/data/message.proto
src/data/uuid.proto

It has these top-level messages:

Message
UUID

Index

Constants

This section is empty.

Variables

View Source
var Message_Intent_name = map[int32]string{
	0:   "SYN",
	100: "ACK",
	200: "STATECHANGE",
	300: "BUILD",
}
View Source
var Message_Intent_value = map[string]int32{
	"SYN":         0,
	"ACK":         100,
	"STATECHANGE": 200,
	"BUILD":       300,
}

Functions

func NewMessageContext

func NewMessageContext() string

NewMessageContext returns a uuid time string for a new context

Types

type Build

type Build struct {
	Commands string `yaml:"commands" validate:"required"`
	Docker   Docker `yaml:"docker"`
}

Build ...

type BuildDefinition

type BuildDefinition struct {
	VCS        VCS        `yaml:"vcs" validate:"required"`
	Build      Build      `yaml:"build" validate:"required"`
	Kubernetes Kubernetes `yaml:"kubernetes" validate:"required"`
}

BuildDefinition ...

type Docker

type Docker struct {
	Buildargs   DockerBuildArgs `yaml:"buildArgs"`
	ContainerID string          `yaml:"containerID"`
}

Docker ...

type DockerBuildArgs

type DockerBuildArgs struct {
	URL string `yaml:"url"`
}

DockerBuildArgs ...

type Kubernetes

type Kubernetes struct {
	Namespace  string `yaml:"namespace" validate:"required"`
	Deployment string `yaml:"deployment" validate:"required"`
	Service    string `yaml:"service"`
	Ingress    string `yaml:"ingress"`
	Secret     string `yaml:"secret"`
}

Kubernetes ...

type Message

type Message struct {
	Uuid *UUID `protobuf:"bytes,1,opt,name=uuid" json:"uuid,omitempty"`
	// Context persists across message chains
	Context *UUID          `protobuf:"bytes,2,opt,name=context" json:"context,omitempty"`
	Type    Message_Intent `protobuf:"varint,3,opt,name=type,enum=data.Message_Intent" json:"type,omitempty"`
	Payload string         `protobuf:"bytes,4,opt,name=payload" json:"payload,omitempty"`
}

func NewMessage

func NewMessage(context ...string) *Message

NewMessage Creates a new bare state object

func NewStateMessage

func NewStateMessage(incomingContext string, message string) *Message

NewStateMessage for updates

func (*Message) Descriptor

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

func (*Message) GetContext

func (m *Message) GetContext() *UUID

func (*Message) GetPayload

func (m *Message) GetPayload() string

func (*Message) GetType

func (m *Message) GetType() Message_Intent

func (*Message) GetUuid

func (m *Message) GetUuid() *UUID

func (*Message) ProtoMessage

func (*Message) ProtoMessage()

func (*Message) Reset

func (m *Message) Reset()

func (*Message) String

func (m *Message) String() string

type Message_Intent

type Message_Intent int32
const (
	Message_SYN         Message_Intent = 0
	Message_ACK         Message_Intent = 100
	Message_STATECHANGE Message_Intent = 200
	Message_BUILD       Message_Intent = 300
)

func (Message_Intent) EnumDescriptor

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

func (Message_Intent) String

func (x Message_Intent) String() string

type UUID

type UUID struct {
	Value string `protobuf:"bytes,1,opt,name=value" json:"value,omitempty"`
}

func (*UUID) Descriptor

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

func (*UUID) GetValue

func (m *UUID) GetValue() string

func (*UUID) ProtoMessage

func (*UUID) ProtoMessage()

func (*UUID) Reset

func (m *UUID) Reset()

func (*UUID) String

func (m *UUID) String() string

type VCS

type VCS struct {
	Type         string `yaml:"type" validate:"required"`
	Path         string `yaml:"path" validate:"required"`
	Name         string `yaml:"name" validate:"required"`
	Branch       string `yaml:"branch" validate:"required"`
	CheckoutArgs string `yaml:"checkoutArgs"`
}

VCS ...

Jump to

Keyboard shortcuts

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