Skip to content

Commit

Permalink
Added workflow client to connect to tink tinkerbell#35
Browse files Browse the repository at this point in the history
  • Loading branch information
Cbkhare committed Jul 1, 2020
1 parent 09c2c91 commit f14f070
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions client/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,3 +76,12 @@ func NewTinkerbellClient() (hardware.HardwareServiceClient, error) {
}
return hardware.NewHardwareServiceClient(conn), nil
}

// TinkerbellWorkflowClient creates a new workflow clients
func TinkerbellWorkflowClient() (workflow.WorkflowSvcClient, error) {
conn, err := GetConnection()
if err != nil {
log.Fatal(err)
}
return workflow.NewWorkflowSvcClient(conn), nil
}

0 comments on commit f14f070

Please sign in to comment.