Skip to content

Commit 114639d

Browse files
add argo and gitops api
1 parent 949bffa commit 114639d

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

pkg/codefresh/argo.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package codefresh
33
import "fmt"
44

55
type (
6-
ArgoApi interface {
6+
ArgoAPI interface {
77
CreateIntegration(integration IntegrationPayloadData) error
88
UpdateIntegration(name string, integration IntegrationPayloadData) error
99
GetIntegrations() ([]*IntegrationPayload, error)
@@ -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/codefresh.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ type (
2222
Progresses() IProgressAPI
2323
Clusters() IClusterAPI
2424
Contexts() IContextAPI
25+
Argo() ArgoAPI
26+
Gitops() GitopsAPI
2527
}
2628
)
2729

@@ -66,11 +68,11 @@ func (c *codefresh) Contexts() IContextAPI {
6668
return newContextAPI(c)
6769
}
6870

69-
func (c *codefresh) Argo() ArgoApi {
71+
func (c *codefresh) Argo() ArgoAPI {
7072
return newArgoAPI(c)
7173
}
7274

73-
func (c *codefresh) Gitops() GitopsApi {
75+
func (c *codefresh) Gitops() GitopsAPI {
7476
return newGitopsAPI(c)
7577
}
7678

pkg/codefresh/gitops.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package codefresh
33
import "fmt"
44

55
type (
6-
GitopsApi interface {
6+
GitopsAPI interface {
77
CreateEnvironment(name string, project string, application string, integration string) error
88
SendEnvironment(environment Environment) (map[string]interface{}, error)
99
DeleteEnvironment(name string) error
@@ -108,7 +108,7 @@ type (
108108
}
109109
)
110110

111-
func newGitopsAPI(codefresh Codefresh) GitopsApi {
111+
func newGitopsAPI(codefresh Codefresh) GitopsAPI {
112112
return &gitops{codefresh}
113113
}
114114

0 commit comments

Comments
 (0)