File tree 2 files changed +12
-12
lines changed
2 files changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -25,12 +25,12 @@ var _ OrgResource = (*zObject)(nil)
25
25
// that represents the set of workspaces you are trying to get access too.
26
26
// Do not export this type, as it can be created from a resource type constant.
27
27
type zObject struct {
28
- id string
29
- owner string
30
- OwnedByOrg string
28
+ id string
29
+ owner string
30
+ orgOwner string
31
31
32
- // ObjectType is "workspace", "project", "devurl", etc
33
- ObjectType ResourceType
32
+ // objectType is "workspace", "project", "devurl", etc
33
+ objectType ResourceType
34
34
// TODO: SharedUsers?
35
35
}
36
36
@@ -39,21 +39,21 @@ func (z zObject) ID() string {
39
39
}
40
40
41
41
func (z zObject ) ResourceType () ResourceType {
42
- return z .ObjectType
42
+ return z .objectType
43
43
}
44
44
45
45
func (z zObject ) OwnerID () string {
46
46
return z .owner
47
47
}
48
48
49
49
func (z zObject ) OrgOwnerID () string {
50
- return z .OwnedByOrg
50
+ return z .orgOwner
51
51
}
52
52
53
53
// Org adds an org OwnerID to the resource
54
54
//nolint:revive
55
55
func (z zObject ) Org (orgID string ) zObject {
56
- z .OwnedByOrg = orgID
56
+ z .orgOwner = orgID
57
57
return z
58
58
}
59
59
Original file line number Diff line number Diff line change @@ -22,8 +22,8 @@ func (t ResourceType) ResourceType() ResourceType {
22
22
//nolint:revive
23
23
func (r ResourceType ) Org (orgID string ) zObject {
24
24
return zObject {
25
- OwnedByOrg : orgID ,
26
- ObjectType : r ,
25
+ orgOwner : orgID ,
26
+ objectType : r ,
27
27
}
28
28
}
29
29
@@ -32,14 +32,14 @@ func (r ResourceType) Org(orgID string) zObject {
32
32
func (r ResourceType ) Owner (id string ) zObject {
33
33
return zObject {
34
34
owner : id ,
35
- ObjectType : r ,
35
+ objectType : r ,
36
36
}
37
37
}
38
38
39
39
//nolint:revive
40
40
func (r ResourceType ) AsID (id string ) zObject {
41
41
return zObject {
42
42
id : id ,
43
- ObjectType : r ,
43
+ objectType : r ,
44
44
}
45
45
}
You can’t perform that action at this time.
0 commit comments