-
Notifications
You must be signed in to change notification settings - Fork 4
/
cluster_node.go
70 lines (53 loc) · 1.79 KB
/
cluster_node.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0
package core
import "github.com/hashicorp/mog/internal/e2e/core/inner"
type Label string
type ClusterNode struct {
ID string
Label Label
// Labels []Label
// WorkPointer []*Workload
Flag *bool
Number uint32
O *Other
I inner.Inner
F1 Workload // for testing struct-to-struct
F2 *Workload // for testing ptr-to-ptr
F3 Workload // for testing ptr-to-struct
F4 *Workload // for testing struct-to-ptr
S1 []string // for testing struct-to-struct for basic slices
S2 []*string // for testing ptr-to-ptr for basic slices
S3 []string // for testing ptr-to-struct for basic slices
S4 []*string // for testing struct-to-ptr for basic slices
S5 []Workload // for testing struct-to-struct for struct slices
S6 []*Workload // for testing ptr-to-ptr for struct slices
S7 []Workload // for testing ptr-to-struct for struct slices
S8 []*Workload // for testing struct-to-ptr for struct slices
S9 StringSlice
S10 []string
S11 WorkloadSlice
S12 []*Workload
S13 WorkloadSlice
M1 map[string]string // for testing struct-to-string for basic map values
M2 map[string]*string // for testing ptr-to-ptr for basic map values
M3 map[string]string // for testing ptr-to-string for basic map values
M4 map[string]*string // for testing struct-to-ptr for basic map values
M5 map[string]Workload
M6 map[string]*Workload
M7 map[string]Workload
M8 map[string]*Workload
// S1 Workload // for testing struct-to-struct for slices
// S2 *Workload // for testing ptr-to-ptr for slices
// S3 Workload // for testing ptr-to-struct for slices
// S4 *Workload // for testing struct-to-ptr for slices
}
type StringSlice []string
type WorkloadSlice []*Workload
type Workload struct {
ID string
Value int
}
type Other struct {
N int
}