-
Notifications
You must be signed in to change notification settings - Fork 9
/
service.go
30 lines (23 loc) · 675 Bytes
/
service.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// Copyright 2019 The Konfig Authors. All Rights Reserved.
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
package konfig
type Service struct {
Spec ServiceSpec `json:"spec,omitempty"`
}
type ServiceSpec struct {
RevisionTemplate RevisionTemplate `json:"template,omitempty"`
}
type RevisionTemplate struct {
Spec RevisionSpec `json:"spec,omitempty"`
}
type RevisionSpec struct {
Containers []Container `json:"containers"`
}
type Container struct {
Env []EnvVar `json:"env,omitempty"`
}
type EnvVar struct {
Name string `json:"name"`
Value string `json:"value,omitempty"`
}