API for CD4PE V1
This API client was generated by the OpenAPI Generator project. By using the OpenAPI-spec from a remote server, you can easily generate an API client.
- API version: 1.0
- Package version: 1.0.0
- Build package: org.openapitools.codegen.languages.GoClientCodegen
Install the following dependencies:
go get github.com/stretchr/testify/assert
go get golang.org/x/oauth2
go get golang.org/x/net/context
go get github.com/antihax/optional
Put the package under your project folder and add the following in import:
import "./cd4pe"
All URIs are relative to http://localhost/api/v1
Class | Method | HTTP request | Description |
---|---|---|---|
DefaultApi | CreateToken | Post /auth/token | Create a token associated with the passed in credentials |
DefaultApi | EvaluatePermissions | Post /permitted | Evaluate permissions for a user |
DefaultApi | GetControlRepos | Get /workspaces/{workspaceId}/controlrepos | |
DefaultApi | GetUserInfo | Get /user | Get information about the user associated with this token |
DefaultApi | ListPeIntegrationsWithToken | Get /internal/workspaces/{workspaceId}/integrations/pe | List PE integrations for a workspace |
- ContainerBuildConfiguration
- ControlRepo
- ControlRepoId
- CreateTokenRequest
- CurrentUserDetails
- DeploymentAppEvent
- EvaluatePermissionsRequest
- ListPeIntegrationsWithTokenResponse
- PeImpactAnalysisEnvironment
- PeImpactAnalysisEvent
- PermissionTriplet
- Permitted
- PuppetEnterpriseCredentials
- PuppetEnterpriseCredentialsId
- PuppetEnterpriseCredentialsWithToken
- Repository
- RollingDeploymentEvent
- User
- VmJobInstanceEvent
- Workspace
- Type: API key
Example
auth := context.WithValue(context.Background(), sw.ContextAPIKey, sw.APIKey{
Key: "APIKEY",
Prefix: "Bearer", // Omit if not necessary.
})
r, err := client.Service.Operation(auth, args)