-
Notifications
You must be signed in to change notification settings - Fork 543
/
identifier.go
46 lines (35 loc) · 946 Bytes
/
identifier.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
package v1alpha1
import (
"bytes"
"github.com/golang/protobuf/jsonpb"
"github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core"
)
type Identifier struct {
*core.Identifier
}
func (in *Identifier) UnmarshalJSON(b []byte) error {
in.Identifier = &core.Identifier{}
return jsonpb.Unmarshal(bytes.NewReader(b), in.Identifier)
}
func (in *Identifier) MarshalJSON() ([]byte, error) {
var buf bytes.Buffer
if err := marshaler.Marshal(&buf, in.Identifier); err != nil {
return nil, err
}
return buf.Bytes(), nil
}
func (in *Identifier) DeepCopyInto(out *Identifier) {
*out = *in
}
type WorkflowExecutionIdentifier struct {
*core.WorkflowExecutionIdentifier
}
func (in *WorkflowExecutionIdentifier) DeepCopyInto(out *WorkflowExecutionIdentifier) {
*out = *in
}
type TaskExecutionIdentifier struct {
*core.TaskExecutionIdentifier
}
func (in *TaskExecutionIdentifier) DeepCopyInto(out *TaskExecutionIdentifier) {
*out = *in
}