Skip to content

Commit 27dcaec

Browse files
authored
export client (#460)
* export client * bumped version to `v1.0.2`
1 parent 210edb4 commit 27dcaec

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

Makefile

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

33
ifndef GOBIN
44
ifndef GOPATH

codefresh.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ steps:
1717
prepare_env_vars: &deps
1818
stage: Prepare
1919
title: prepare-env
20-
image: quay.io/codefresh/golang-ci-helper:1.21.5
20+
image: quay.io/codefresh/golang-ci-helper:1.21
2121
commands:
2222
- cf_export GO111MODULE=on
2323
- cf_export GOCACHE=/codefresh/volume/gocache # change gopath to codefresh shared volume

pkg/codefresh/codefresh.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ type (
1616
AppProxy(ctx context.Context, runtime string, insecure bool) (ap.AppProxyAPI, error)
1717
GraphQL() gql.GraphQLAPI
1818
Rest() rest.RestAPI
19+
InternalClient() *client.CfClient
1920
}
2021

2122
ClientOptions struct {
@@ -61,3 +62,7 @@ func (c *codefresh) GraphQL() gql.GraphQLAPI {
6162
func (c *codefresh) Rest() rest.RestAPI {
6263
return rest.NewRestClient(c.client)
6364
}
65+
66+
func (c *codefresh) InternalClient() *client.CfClient {
67+
return c.client
68+
}

0 commit comments

Comments
 (0)