forked from kelseyhightower/konfig
-
Notifications
You must be signed in to change notification settings - Fork 0
/
service.go
38 lines (29 loc) · 839 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
31
32
33
34
35
36
37
38
// 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 {
RunLatest RunLatest `json:"runLatest,omitempty"`
}
type RunLatest struct {
Configuration Configuration `json:"configuration,omitempty"`
}
type Configuration struct {
RevisionTemplate RevisionTemplate `json:"revisionTemplate"`
}
type RevisionTemplate struct {
Spec RevisionSpec `json:"spec,omitempty"`
}
type RevisionSpec struct {
Container Container `json:"container"`
}
type Container struct {
Env []EnvVar `json:"env,omitempty"`
}
type EnvVar struct {
Name string `json:"name"`
Value string `json:"value,omitempty"`
}