Skip to content

Commit 7fb9ffa

Browse files
private functions shouldnt be part of interface
1 parent cf4e65c commit 7fb9ffa

File tree

9 files changed

+18
-18
lines changed

9 files changed

+18
-18
lines changed

pkg/codefresh/argo.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ type (
1414
}
1515

1616
argo struct {
17-
codefresh codefresh
17+
codefresh *codefresh
1818
}
1919

2020
IntegrationItem struct {
@@ -50,7 +50,7 @@ type (
5050
}
5151
)
5252

53-
func newArgoAPI(codefresh codefresh) ArgoAPI {
53+
func newArgoAPI(codefresh *codefresh) ArgoAPI {
5454
return &argo{codefresh}
5555
}
5656

pkg/codefresh/cluster.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ type (
99
}
1010

1111
cluster struct {
12-
codefresh codefresh
12+
codefresh *codefresh
1313
}
1414

1515
Cluster struct {
@@ -31,7 +31,7 @@ type (
3131
}
3232
)
3333

34-
func newClusterAPI(codefresh codefresh) IClusterAPI {
34+
func newClusterAPI(codefresh *codefresh) IClusterAPI {
3535
return &cluster{codefresh}
3636
}
3737

pkg/codefresh/contexts.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ type (
88
}
99

1010
context struct {
11-
codefresh Codefresh
11+
codefresh *codefresh
1212
}
1313

1414
ContextPayload struct {
@@ -31,7 +31,7 @@ type (
3131
}
3232
)
3333

34-
func newContextAPI(codefresh Codefresh) IContextAPI {
34+
func newContextAPI(codefresh *codefresh) IContextAPI {
3535
return &context{codefresh}
3636
}
3737

pkg/codefresh/gitops.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ type (
1313
}
1414

1515
gitops struct {
16-
codefresh Codefresh
16+
codefresh *codefresh
1717
}
1818
CodefreshEvent struct {
1919
Event string `json:"event"`
@@ -117,7 +117,7 @@ type (
117117
}
118118
)
119119

120-
func newGitopsAPI(codefresh Codefresh) GitopsAPI {
120+
func newGitopsAPI(codefresh *codefresh) GitopsAPI {
121121
return &gitops{codefresh}
122122
}
123123

pkg/codefresh/pipeline.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ type (
6161
}
6262

6363
pipeline struct {
64-
codefresh Codefresh
64+
codefresh *codefresh
6565
}
6666

6767
RunOptions struct {
@@ -70,7 +70,7 @@ type (
7070
}
7171
)
7272

73-
func newPipelineAPI(codefresh Codefresh) IPipelineAPI {
73+
func newPipelineAPI(codefresh *codefresh) IPipelineAPI {
7474
return &pipeline{codefresh}
7575
}
7676

pkg/codefresh/progress.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ type (
1010
}
1111

1212
progress struct {
13-
codefresh Codefresh
13+
codefresh *codefresh
1414
}
1515

1616
Progress struct {
@@ -25,7 +25,7 @@ type (
2525
}
2626
)
2727

28-
func newProgressAPI(codefresh Codefresh) IProgressAPI {
28+
func newProgressAPI(codefresh *codefresh) IProgressAPI {
2929
return &progress{codefresh}
3030
}
3131

pkg/codefresh/runtime_enrionment.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,11 +98,11 @@ type (
9898
}
9999

100100
runtimeEnvironment struct {
101-
codefresh Codefresh
101+
codefresh *codefresh
102102
}
103103
)
104104

105-
func newRuntimeEnvironmentAPI(codefresh Codefresh) IRuntimeEnvironmentAPI {
105+
func newRuntimeEnvironmentAPI(codefresh *codefresh) IRuntimeEnvironmentAPI {
106106
return &runtimeEnvironment{codefresh}
107107
}
108108

pkg/codefresh/tokens.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,15 @@ type (
3030
}
3131

3232
token struct {
33-
codefresh Codefresh
33+
codefresh *codefresh
3434
}
3535
)
3636

3737
const (
3838
runtimeEnvironmentSubject tokenSubjectType = 0
3939
)
4040

41-
func newTokenAPI(codefresh Codefresh) ITokenAPI {
41+
func newTokenAPI(codefresh *codefresh) ITokenAPI {
4242
return &token{codefresh}
4343
}
4444

pkg/codefresh/workflow.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ type (
1313
}
1414

1515
workflow struct {
16-
codefresh Codefresh
16+
codefresh *codefresh
1717
}
1818

1919
Workflow struct {
@@ -27,7 +27,7 @@ type (
2727
}
2828
)
2929

30-
func newWorkflowAPI(codefresh Codefresh) IWorkflowAPI {
30+
func newWorkflowAPI(codefresh *codefresh) IWorkflowAPI {
3131
return &workflow{codefresh}
3232
}
3333

0 commit comments

Comments
 (0)