Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(config Config) (smwaypoint.ClientService, error)
New creates a new Waypoint client given the config. If configured for HCP Waypoint Get Namespace and attach it to the basepath and setup bearer token transport.
Types ¶
type Config ¶
type Config struct {
//HCPConfig contains config values to interact with HCP Waypoint API
//This config should be nil if interacting with Self Managed Waypoint API
*HCPWaypointConfig
//WaypointConfig contains config values to interact with Self Managed Waypoint API.
//This config should be set to nil if interacting with HCP Waypoint API.
*WaypointConfig
//BasePath is the path to the api server.
BasePath string
//ServerURL is the URL of the Waypoint Server. Only for Self-Managed Waypoint.
ServerUrl string
//Schemes is the protocol the client will be set to use. Defaults to https
Schemes []string
}
type HCPWaypointConfig ¶
type HCPWaypointConfig struct {
//HCPOrgId is the organization id. Only for HCP Waypoint.
HCPOrgId string
// HCPProjectId is the hcp project id. Only for HCP Waypoint.
HCPProjectId string
//clientCredentialsConfig is the service principal credentials that will be used for oauth.
ClientCredentialsConfig clientcredentials.Config
//BasePath is the path to the api server.
BasePath string
// contains filtered or unexported fields
}
type WaypointConfig ¶
Click to show internal directories.
Click to hide internal directories.