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 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 ¶
NewMessage Creates a new bare state object
func NewStateMessage ¶
NewStateMessage for updates
func (*Message) Descriptor ¶
func (*Message) GetContext ¶
func (*Message) GetPayload ¶
func (*Message) GetType ¶
func (m *Message) GetType() Message_Intent
func (*Message) ProtoMessage ¶
func (*Message) ProtoMessage()
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) ProtoMessage ¶
func (*UUID) ProtoMessage()
Click to show internal directories.
Click to hide internal directories.