Documentation ¶
Index ¶
- Variables
- type Actor
- type ContainerImage
- func (*ContainerImage) Descriptor() ([]byte, []int)deprecated
- func (x *ContainerImage) GetHash() string
- func (x *ContainerImage) GetName() string
- func (x *ContainerImage) GetTag() string
- func (*ContainerImage) ProtoMessage()
- func (x *ContainerImage) ProtoReflect() protoreflect.Message
- func (x *ContainerImage) Reset()
- func (x *ContainerImage) String() string
- type Environment
- func (Environment) Descriptor() protoreflect.EnumDescriptor
- func (x Environment) Enum() *Environment
- func (Environment) EnumDescriptor() ([]byte, []int)deprecated
- func (x Environment) Number() protoreflect.EnumNumber
- func (x Environment) String() string
- func (Environment) Type() protoreflect.EnumType
- type Event
- func (*Event) Descriptor() ([]byte, []int)deprecated
- func (m *Event) Flatten() map[string]string
- func (x *Event) GetApplication() string
- func (x *Event) GetCluster() string
- func (x *Event) GetCorrelationID() string
- func (x *Event) GetDeployer() *Actor
- func (x *Event) GetEnvironment() Environment
- func (x *Event) GetGitCommitSha() string
- func (x *Event) GetImage() *ContainerImage
- func (x *Event) GetNamespace() string
- func (x *Event) GetPlatform() *Platform
- func (x *Event) GetRolloutStatus() RolloutStatus
- func (x *Event) GetSkyaEnvironment() string
- func (x *Event) GetSource() System
- func (x *Event) GetTeam() string
- func (x *Event) GetTimestamp() *timestamppb.Timestamp
- func (m *Event) GetTimestampAsTime() time.Time
- func (x *Event) GetVersion() string
- func (*Event) ProtoMessage()
- func (x *Event) ProtoReflect() protoreflect.Message
- func (x *Event) Reset()
- func (x *Event) String() string
- type Platform
- type PlatformType
- func (PlatformType) Descriptor() protoreflect.EnumDescriptor
- func (x PlatformType) Enum() *PlatformType
- func (PlatformType) EnumDescriptor() ([]byte, []int)deprecated
- func (x PlatformType) Number() protoreflect.EnumNumber
- func (x PlatformType) String() string
- func (PlatformType) Type() protoreflect.EnumType
- type RolloutStatus
- func (RolloutStatus) Descriptor() protoreflect.EnumDescriptor
- func (x RolloutStatus) Enum() *RolloutStatus
- func (RolloutStatus) EnumDescriptor() ([]byte, []int)deprecated
- func (x RolloutStatus) Number() protoreflect.EnumNumber
- func (x RolloutStatus) String() string
- func (RolloutStatus) Type() protoreflect.EnumType
- type System
Constants ¶
This section is empty.
Variables ¶
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.
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.
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.
var ( Environment_name = map[int32]string{ 0: "production", 1: "development", } Environment_value = map[string]int32{ "production": 0, "development": 1, } )
Enum value maps for Environment.
var File_pkg_deployment_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) ProtoMessage ¶
func (*Actor) ProtoMessage()
func (*Actor) ProtoReflect ¶
func (x *Actor) ProtoReflect() protoreflect.Message
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) Descriptor() protoreflect.EnumDescriptor
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 ¶
func (Environment) Type() protoreflect.EnumType
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) Flatten ¶
Flatten returns all non-empty values as a key -> value hash. Nested data structures are flattened with key names joined using an underscore.
func (*Event) GetApplication ¶
func (*Event) GetCluster ¶
func (*Event) GetCorrelationID ¶
func (*Event) GetDeployer ¶
func (*Event) GetEnvironment ¶
func (x *Event) GetEnvironment() Environment
func (*Event) GetGitCommitSha ¶
func (*Event) GetImage ¶
func (x *Event) GetImage() *ContainerImage
func (*Event) GetNamespace ¶
func (*Event) GetPlatform ¶
func (*Event) GetRolloutStatus ¶
func (x *Event) GetRolloutStatus() RolloutStatus
func (*Event) GetSkyaEnvironment ¶
func (*Event) GetTimestamp ¶
func (x *Event) GetTimestamp() *timestamppb.Timestamp
func (*Event) GetTimestampAsTime ¶
func (*Event) GetVersion ¶
func (*Event) ProtoMessage ¶
func (*Event) ProtoMessage()
func (*Event) ProtoReflect ¶
func (x *Event) ProtoReflect() protoreflect.Message
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) GetType ¶
func (x *Platform) GetType() PlatformType
func (*Platform) GetVariant ¶
func (*Platform) ProtoMessage ¶
func (*Platform) ProtoMessage()
func (*Platform) ProtoReflect ¶
func (x *Platform) ProtoReflect() protoreflect.Message
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) Descriptor() protoreflect.EnumDescriptor
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 (x PlatformType) Number() protoreflect.EnumNumber
func (PlatformType) String ¶
func (x PlatformType) String() string
func (PlatformType) Type ¶
func (PlatformType) Type() protoreflect.EnumType
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) Descriptor() protoreflect.EnumDescriptor
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 (x RolloutStatus) Number() protoreflect.EnumNumber
func (RolloutStatus) String ¶
func (x RolloutStatus) String() string
func (RolloutStatus) Type ¶
func (RolloutStatus) Type() protoreflect.EnumType
type System ¶
type System int32
Only enumerated systems can report deployment status.
func (System) Descriptor ¶
func (System) Descriptor() protoreflect.EnumDescriptor
func (System) EnumDescriptor
deprecated
func (System) Number ¶
func (x System) Number() protoreflect.EnumNumber
func (System) Type ¶
func (System) Type() protoreflect.EnumType