Skip to content

Commit f3763e7

Browse files
authored
CR-30491 - add interface to http native API (#489)
* feat: add interface to internal client * feat: add interface to internal client * feat: add interface to internal client
1 parent 636626c commit f3763e7

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
VERSION=v1.4.11
1+
VERSION=v1.4.12
22

33
ifndef GOBIN
44
ifndef GOPATH

pkg/codefresh/codefresh.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ type (
1717
GraphQL() gql.GraphQLAPI
1818
Rest() rest.RestAPI
1919
InternalClient() *client.CfClient
20+
HttpClient() HttpClient
21+
}
22+
23+
HttpClient interface {
24+
NativeRestAPI(ctx context.Context, opt *client.RequestOptions) (*http.Response, error)
2025
}
2126

2227
ClientOptions struct {
@@ -66,3 +71,7 @@ func (c *codefresh) Rest() rest.RestAPI {
6671
func (c *codefresh) InternalClient() *client.CfClient {
6772
return c.client
6873
}
74+
75+
func (c *codefresh) HttpClient() HttpClient {
76+
return c.client
77+
}

0 commit comments

Comments
 (0)