deployment

package
v0.0.0-...-1ea09f2 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	PlatformType_name = map[int32]string{
		0: "jboss",
		1: "was",
		2: "bpm",
		3: "nais",
	}
	PlatformType_value = map[string]int32{
		"jboss": 0,
		"was":   1,
		"bpm":   2,
		"nais":  3,
	}
)

Enum value maps for PlatformType.

View Source
var (
	System_name = map[int32]string{
		0: "aura",
		1: "naisd",
		2: "naiserator",
	}
	System_value = map[string]int32{
		"aura":       0,
		"naisd":      1,
		"naiserator": 2,
	}
)

Enum value maps for System.

View Source
var (
	RolloutStatus_name = map[int32]string{
		0: "unknown",
		1: "initialized",
		2: "complete",
	}
	RolloutStatus_value = map[string]int32{
		"unknown":     0,
		"initialized": 1,
		"complete":    2,
	}
)

Enum value maps for RolloutStatus.

View Source
var (
	Environment_name = map[int32]string{
		0: "production",
		1: "development",
	}
	Environment_value = map[string]int32{
		"production":  0,
		"development": 1,
	}
)

Enum value maps for Environment.

View Source
var File_pkg_event_event_proto protoreflect.FileDescriptor

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"`
	// contains filtered or unexported fields
}

Actor is a human being or a service account.

func (*Actor) Descriptor deprecated

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

Deprecated: Use Actor.ProtoReflect.Descriptor instead.

func (*Actor) GetEmail

func (x *Actor) GetEmail() string

func (*Actor) GetIdent

func (x *Actor) GetIdent() string

func (*Actor) GetName

func (x *Actor) GetName() string

func (*Actor) ProtoMessage

func (*Actor) ProtoMessage()

func (*Actor) ProtoReflect

func (x *Actor) ProtoReflect() protoreflect.Message

func (*Actor) Reset

func (x *Actor) Reset()

func (*Actor) String

func (x *Actor) String() string

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"`
	// contains filtered or unexported fields
}

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 deprecated

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

Deprecated: Use ContainerImage.ProtoReflect.Descriptor instead.

func (*ContainerImage) GetHash

func (x *ContainerImage) GetHash() string

func (*ContainerImage) GetName

func (x *ContainerImage) GetName() string

func (*ContainerImage) GetTag

func (x *ContainerImage) GetTag() string

func (*ContainerImage) ProtoMessage

func (*ContainerImage) ProtoMessage()

func (*ContainerImage) ProtoReflect

func (x *ContainerImage) ProtoReflect() protoreflect.Message

func (*ContainerImage) Reset

func (x *ContainerImage) Reset()

func (*ContainerImage) String

func (x *ContainerImage) String() string

type Environment

type Environment int32

Environment separates between production and development environments.

const (
	Environment_production  Environment = 0
	Environment_development Environment = 1
)

func (Environment) Descriptor

func (Environment) Enum

func (x Environment) Enum() *Environment

func (Environment) EnumDescriptor deprecated

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

Deprecated: Use Environment.Descriptor instead.

func (Environment) Number

func (x Environment) Number() protoreflect.EnumNumber

func (Environment) String

func (x Environment) String() string

func (Environment) Type

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 *timestamppb.Timestamp `protobuf:"bytes,14,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// GitCommitSha refers to the commit that the application build is based on.
	GitCommitSha string `protobuf:"bytes,15,opt,name=gitCommitSha,proto3" json:"gitCommitSha,omitempty"`
	// contains filtered or unexported fields
}

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

func (*Event) Descriptor deprecated

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

Deprecated: Use Event.ProtoReflect.Descriptor instead.

func (*Event) GetApplication

func (x *Event) GetApplication() string

func (*Event) GetCluster

func (x *Event) GetCluster() string

func (*Event) GetCorrelationID

func (x *Event) GetCorrelationID() string

func (*Event) GetDeployer

func (x *Event) GetDeployer() *Actor

func (*Event) GetEnvironment

func (x *Event) GetEnvironment() Environment

func (*Event) GetGitCommitSha

func (x *Event) GetGitCommitSha() string

func (*Event) GetImage

func (x *Event) GetImage() *ContainerImage

func (*Event) GetNamespace

func (x *Event) GetNamespace() string

func (*Event) GetPlatform

func (x *Event) GetPlatform() *Platform

func (*Event) GetRolloutStatus

func (x *Event) GetRolloutStatus() RolloutStatus

func (*Event) GetSkyaEnvironment

func (x *Event) GetSkyaEnvironment() string

func (*Event) GetSource

func (x *Event) GetSource() System

func (*Event) GetTeam

func (x *Event) GetTeam() string

func (*Event) GetTimestamp

func (x *Event) GetTimestamp() *timestamppb.Timestamp

func (*Event) GetTimestampAsTime

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

func (*Event) GetVersion

func (x *Event) GetVersion() string

func (*Event) ProtoMessage

func (*Event) ProtoMessage()

func (*Event) ProtoReflect

func (x *Event) ProtoReflect() protoreflect.Message

func (*Event) Reset

func (x *Event) Reset()

func (*Event) String

func (x *Event) String() string

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"`
	// contains filtered or unexported fields
}

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 deprecated

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

Deprecated: Use Platform.ProtoReflect.Descriptor instead.

func (*Platform) GetType

func (x *Platform) GetType() PlatformType

func (*Platform) GetVariant

func (x *Platform) GetVariant() string

func (*Platform) ProtoMessage

func (*Platform) ProtoMessage()

func (*Platform) ProtoReflect

func (x *Platform) ProtoReflect() protoreflect.Message

func (*Platform) Reset

func (x *Platform) Reset()

func (*Platform) String

func (x *Platform) String() string

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) Descriptor

func (PlatformType) Enum

func (x PlatformType) Enum() *PlatformType

func (PlatformType) EnumDescriptor deprecated

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

Deprecated: Use PlatformType.Descriptor instead.

func (PlatformType) Number

func (PlatformType) String

func (x PlatformType) String() string

func (PlatformType) Type

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) Descriptor

func (RolloutStatus) Enum

func (x RolloutStatus) Enum() *RolloutStatus

func (RolloutStatus) EnumDescriptor deprecated

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

Deprecated: Use RolloutStatus.Descriptor instead.

func (RolloutStatus) Number

func (RolloutStatus) String

func (x RolloutStatus) String() string

func (RolloutStatus) Type

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) Descriptor

func (System) Descriptor() protoreflect.EnumDescriptor

func (System) Enum

func (x System) Enum() *System

func (System) EnumDescriptor deprecated

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

Deprecated: Use System.Descriptor instead.

func (System) Number

func (x System) Number() protoreflect.EnumNumber

func (System) String

func (x System) String() string

func (System) Type

func (System) Type() protoreflect.EnumType

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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