Documentation ¶
Index ¶
- Variables
- type Actor
- func (*Actor) Descriptor() ([]byte, []int)
- func (m *Actor) GetEmail() string
- func (m *Actor) GetIdent() string
- func (m *Actor) GetName() string
- func (*Actor) ProtoMessage()
- func (m *Actor) Reset()
- func (m *Actor) String() string
- func (m *Actor) XXX_DiscardUnknown()
- func (m *Actor) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Actor) XXX_Merge(src proto.Message)
- func (m *Actor) XXX_Size() int
- func (m *Actor) XXX_Unmarshal(b []byte) error
- type ContainerImage
- func (*ContainerImage) Descriptor() ([]byte, []int)
- func (m *ContainerImage) GetHash() string
- func (m *ContainerImage) GetName() string
- func (m *ContainerImage) GetTag() string
- func (*ContainerImage) ProtoMessage()
- func (m *ContainerImage) Reset()
- func (m *ContainerImage) String() string
- func (m *ContainerImage) XXX_DiscardUnknown()
- func (m *ContainerImage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ContainerImage) XXX_Merge(src proto.Message)
- func (m *ContainerImage) XXX_Size() int
- func (m *ContainerImage) XXX_Unmarshal(b []byte) error
- type Environment
- type Event
- func (*Event) Descriptor() ([]byte, []int)
- func (m *Event) GetApplication() string
- func (m *Event) GetCluster() string
- func (m *Event) GetCorrelationID() string
- func (m *Event) GetDeployer() *Actor
- func (m *Event) GetEnvironment() Environment
- func (m *Event) GetImage() *ContainerImage
- func (m *Event) GetNamespace() string
- func (m *Event) GetPlatform() *Platform
- func (m *Event) GetRolloutStatus() RolloutStatus
- func (m *Event) GetSkyaEnvironment() string
- func (m *Event) GetSource() System
- func (m *Event) GetTeam() string
- func (m *Event) GetTimestamp() *timestamp.Timestamp
- func (m *Event) GetTimestampAsTime() time.Time
- func (m *Event) GetVersion() string
- func (*Event) ProtoMessage()
- func (m *Event) Reset()
- func (m *Event) String() string
- func (m *Event) XXX_DiscardUnknown()
- func (m *Event) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Event) XXX_Merge(src proto.Message)
- func (m *Event) XXX_Size() int
- func (m *Event) XXX_Unmarshal(b []byte) error
- type Platform
- func (*Platform) Descriptor() ([]byte, []int)
- func (m *Platform) GetType() PlatformType
- func (m *Platform) GetVariant() string
- func (*Platform) ProtoMessage()
- func (m *Platform) Reset()
- func (m *Platform) String() string
- func (m *Platform) XXX_DiscardUnknown()
- func (m *Platform) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Platform) XXX_Merge(src proto.Message)
- func (m *Platform) XXX_Size() int
- func (m *Platform) XXX_Unmarshal(b []byte) error
- type PlatformType
- type RolloutStatus
- type System
Constants ¶
This section is empty.
Variables ¶
var Environment_name = map[int32]string{
0: "production",
1: "development",
}
var Environment_value = map[string]int32{
"production": 0,
"development": 1,
}
var PlatformType_name = map[int32]string{
0: "jboss",
1: "was",
2: "bpm",
3: "nais",
}
var PlatformType_value = map[string]int32{
"jboss": 0,
"was": 1,
"bpm": 2,
"nais": 3,
}
var RolloutStatus_name = map[int32]string{
0: "unknown",
1: "initialized",
2: "complete",
}
var RolloutStatus_value = map[string]int32{
"unknown": 0,
"initialized": 1,
"complete": 2,
}
var System_name = map[int32]string{
0: "aura",
1: "naisd",
2: "naiserator",
}
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) ProtoMessage ¶
func (*Actor) ProtoMessage()
func (*Actor) XXX_DiscardUnknown ¶
func (m *Actor) XXX_DiscardUnknown()
func (*Actor) XXX_Marshal ¶
func (*Actor) XXX_Unmarshal ¶
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) GetApplication ¶
func (*Event) GetCluster ¶
func (*Event) GetCorrelationID ¶
func (*Event) GetDeployer ¶
func (*Event) GetEnvironment ¶
func (m *Event) GetEnvironment() Environment
func (*Event) GetImage ¶
func (m *Event) GetImage() *ContainerImage
func (*Event) GetNamespace ¶
func (*Event) GetPlatform ¶
func (*Event) GetRolloutStatus ¶
func (m *Event) GetRolloutStatus() RolloutStatus
func (*Event) GetSkyaEnvironment ¶
func (*Event) GetTimestamp ¶
func (*Event) GetTimestampAsTime ¶
GetTimestampAsTime returns the Event's timestamp as standard library format.
func (*Event) GetVersion ¶
func (*Event) ProtoMessage ¶
func (*Event) ProtoMessage()
func (*Event) XXX_DiscardUnknown ¶
func (m *Event) XXX_DiscardUnknown()
func (*Event) XXX_Marshal ¶
func (*Event) XXX_Unmarshal ¶
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) GetType ¶
func (m *Platform) GetType() PlatformType
func (*Platform) GetVariant ¶
func (*Platform) ProtoMessage ¶
func (*Platform) ProtoMessage()
func (*Platform) XXX_DiscardUnknown ¶
func (m *Platform) XXX_DiscardUnknown()
func (*Platform) XXX_Marshal ¶
func (*Platform) XXX_Unmarshal ¶
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.