deployment

package
v0.0.0-...-8944940 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Environment_name = map[int32]string{
	0: "production",
	1: "development",
}
View Source
var Environment_value = map[string]int32{
	"production":  0,
	"development": 1,
}
View Source
var PlatformType_name = map[int32]string{
	0: "jboss",
	1: "was",
	2: "bpm",
	3: "nais",
}
View Source
var PlatformType_value = map[string]int32{
	"jboss": 0,
	"was":   1,
	"bpm":   2,
	"nais":  3,
}
View Source
var RolloutStatus_name = map[int32]string{
	0: "unknown",
	1: "initialized",
	2: "complete",
}
View Source
var RolloutStatus_value = map[string]int32{
	"unknown":     0,
	"initialized": 1,
	"complete":    2,
}
View Source
var System_name = map[int32]string{
	0: "aura",
	1: "naisd",
	2: "naiserator",
}
View Source
var System_value = map[string]int32{
	"aura":       0,
	"naisd":      1,
	"naiserator": 2,
}

Functions

This section is empty.

Types

type Actor

type Actor struct {
	Ident                string   `protobuf:"bytes,1,opt,name=ident,proto3" json:"ident,omitempty"`
	Email                string   `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"`
	Name                 string   `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Actor is a human being or a service account.

func (*Actor) Descriptor

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

func (*Actor) GetEmail

func (m *Actor) GetEmail() string

func (*Actor) GetIdent

func (m *Actor) GetIdent() string

func (*Actor) GetName

func (m *Actor) GetName() string

func (*Actor) ProtoMessage

func (*Actor) ProtoMessage()

func (*Actor) Reset

func (m *Actor) Reset()

func (*Actor) String

func (m *Actor) String() string

func (*Actor) XXX_DiscardUnknown

func (m *Actor) XXX_DiscardUnknown()

func (*Actor) XXX_Marshal

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

func (*Actor) XXX_Merge

func (m *Actor) XXX_Merge(src proto.Message)

func (*Actor) XXX_Size

func (m *Actor) XXX_Size() int

func (*Actor) XXX_Unmarshal

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

type ContainerImage

type ContainerImage struct {
	Name                 string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Tag                  string   `protobuf:"bytes,2,opt,name=tag,proto3" json:"tag,omitempty"`
	Hash                 string   `protobuf:"bytes,3,opt,name=hash,proto3" json:"hash,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

ContainerImage is a reference to a image that can be deployed as a container, typically a Docker container inside a Kubernetes pod.

func (*ContainerImage) Descriptor

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

func (*ContainerImage) GetHash

func (m *ContainerImage) GetHash() string

func (*ContainerImage) GetName

func (m *ContainerImage) GetName() string

func (*ContainerImage) GetTag

func (m *ContainerImage) GetTag() string

func (*ContainerImage) ProtoMessage

func (*ContainerImage) ProtoMessage()

func (*ContainerImage) Reset

func (m *ContainerImage) Reset()

func (*ContainerImage) String

func (m *ContainerImage) String() string

func (*ContainerImage) XXX_DiscardUnknown

func (m *ContainerImage) XXX_DiscardUnknown()

func (*ContainerImage) XXX_Marshal

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

func (*ContainerImage) XXX_Merge

func (m *ContainerImage) XXX_Merge(src proto.Message)

func (*ContainerImage) XXX_Size

func (m *ContainerImage) XXX_Size() int

func (*ContainerImage) XXX_Unmarshal

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

type Environment

type Environment int32

Environment separates between production and development environments.

const (
	Environment_production  Environment = 0
	Environment_development Environment = 1
)

func (Environment) EnumDescriptor

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

func (Environment) String

func (x Environment) String() string

type Event

type Event struct {
	// CorrelationID can be used to correlate events across different systems.
	CorrelationID string `protobuf:"bytes,1,opt,name=correlationID,proto3" json:"correlationID,omitempty"`
	// Platform represents the technical platform on which the deployment was made.
	Platform *Platform `protobuf:"bytes,2,opt,name=platform,proto3" json:"platform,omitempty"`
	// Source tells which system that reported the deployment.
	Source System `protobuf:"varint,3,opt,name=source,proto3,enum=deployment.System" json:"source,omitempty"`
	// Deployer is a reference to a human being that started the deployment.
	Deployer *Actor `protobuf:"bytes,4,opt,name=deployer,proto3" json:"deployer,omitempty"`
	// Team is an organizational structure within NAV and refers to a group of people.
	Team string `protobuf:"bytes,5,opt,name=team,proto3" json:"team,omitempty"`
	// RolloutStatus shows the deployment status.
	RolloutStatus RolloutStatus `protobuf:"varint,6,opt,name=rolloutStatus,proto3,enum=deployment.RolloutStatus" json:"rolloutStatus,omitempty"`
	// Environment can be production or development.
	Environment Environment `protobuf:"varint,7,opt,name=environment,proto3,enum=deployment.Environment" json:"environment,omitempty"`
	// The SKYA platform divides between production, development, staging, and test.
	// Furthermore, these environments are divided into smaller segments denoted with
	// a number, such as q0, t6, u11.
	SkyaEnvironment string `protobuf:"bytes,8,opt,name=skyaEnvironment,proto3" json:"skyaEnvironment,omitempty"`
	// Namespace represents the Kubernetes namespace this deployment was made into.
	Namespace string `protobuf:"bytes,9,opt,name=namespace,proto3" json:"namespace,omitempty"`
	// Cluster is the name of the Kubernetes cluster that was deployed to.
	Cluster string `protobuf:"bytes,10,opt,name=cluster,proto3" json:"cluster,omitempty"`
	// Application is the name of the deployed application.
	Application string `protobuf:"bytes,11,opt,name=application,proto3" json:"application,omitempty"`
	// Version is the version of the deployed application.
	Version string `protobuf:"bytes,12,opt,name=version,proto3" json:"version,omitempty"`
	// Image refers to the container source, usually a Docker image.
	Image *ContainerImage `protobuf:"bytes,13,opt,name=image,proto3" json:"image,omitempty"`
	// Timestamp is the generation time of the deployment event.
	Timestamp            *timestamp.Timestamp `protobuf:"bytes,14,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

Event represents a deployment that has been made on any of NAV's systems.

func (*Event) Descriptor

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

func (*Event) GetApplication

func (m *Event) GetApplication() string

func (*Event) GetCluster

func (m *Event) GetCluster() string

func (*Event) GetCorrelationID

func (m *Event) GetCorrelationID() string

func (*Event) GetDeployer

func (m *Event) GetDeployer() *Actor

func (*Event) GetEnvironment

func (m *Event) GetEnvironment() Environment

func (*Event) GetImage

func (m *Event) GetImage() *ContainerImage

func (*Event) GetNamespace

func (m *Event) GetNamespace() string

func (*Event) GetPlatform

func (m *Event) GetPlatform() *Platform

func (*Event) GetRolloutStatus

func (m *Event) GetRolloutStatus() RolloutStatus

func (*Event) GetSkyaEnvironment

func (m *Event) GetSkyaEnvironment() string

func (*Event) GetSource

func (m *Event) GetSource() System

func (*Event) GetTeam

func (m *Event) GetTeam() string

func (*Event) GetTimestamp

func (m *Event) GetTimestamp() *timestamp.Timestamp

func (*Event) GetTimestampAsTime

func (m *Event) GetTimestampAsTime() time.Time

GetTimestampAsTime returns the Event's timestamp as standard library format.

func (*Event) GetVersion

func (m *Event) GetVersion() string

func (*Event) ProtoMessage

func (*Event) ProtoMessage()

func (*Event) Reset

func (m *Event) Reset()

func (*Event) String

func (m *Event) String() string

func (*Event) XXX_DiscardUnknown

func (m *Event) XXX_DiscardUnknown()

func (*Event) XXX_Marshal

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

func (*Event) XXX_Merge

func (m *Event) XXX_Merge(src proto.Message)

func (*Event) XXX_Size

func (m *Event) XXX_Size() int

func (*Event) XXX_Unmarshal

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

type Platform

type Platform struct {
	Type                 PlatformType `protobuf:"varint,1,opt,name=type,proto3,enum=deployment.PlatformType" json:"type,omitempty"`
	Variant              string       `protobuf:"bytes,2,opt,name=variant,proto3" json:"variant,omitempty"`
	XXX_NoUnkeyedLiteral struct{}     `json:"-"`
	XXX_unrecognized     []byte       `json:"-"`
	XXX_sizecache        int32        `json:"-"`
}

A platform represents a place where applications and systems are deployed. Since platforms come in different versions and flavors, a variant can also be specified.

func (*Platform) Descriptor

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

func (*Platform) GetType

func (m *Platform) GetType() PlatformType

func (*Platform) GetVariant

func (m *Platform) GetVariant() string

func (*Platform) ProtoMessage

func (*Platform) ProtoMessage()

func (*Platform) Reset

func (m *Platform) Reset()

func (*Platform) String

func (m *Platform) String() string

func (*Platform) XXX_DiscardUnknown

func (m *Platform) XXX_DiscardUnknown()

func (*Platform) XXX_Marshal

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

func (*Platform) XXX_Merge

func (m *Platform) XXX_Merge(src proto.Message)

func (*Platform) XXX_Size

func (m *Platform) XXX_Size() int

func (*Platform) XXX_Unmarshal

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

type PlatformType

type PlatformType int32

PlatformType denotes what kind of platform are used for deploying.

const (
	PlatformType_jboss PlatformType = 0
	PlatformType_was   PlatformType = 1
	PlatformType_bpm   PlatformType = 2
	PlatformType_nais  PlatformType = 3
)

func (PlatformType) EnumDescriptor

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

func (PlatformType) String

func (x PlatformType) String() string

type RolloutStatus

type RolloutStatus int32

RolloutStatus denotes whether a deployment has been initialized, rolled out successfully, or if the status is altogether unknown.

const (
	RolloutStatus_unknown     RolloutStatus = 0
	RolloutStatus_initialized RolloutStatus = 1
	RolloutStatus_complete    RolloutStatus = 2
)

func (RolloutStatus) EnumDescriptor

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

func (RolloutStatus) String

func (x RolloutStatus) String() string

type System

type System int32

Only enumerated systems can report deployment status.

const (
	System_aura       System = 0
	System_naisd      System = 1
	System_naiserator System = 2
)

func (System) EnumDescriptor

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

func (System) String

func (x System) String() string

Jump to

Keyboard shortcuts

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