Open source, extensible and Docker-based Platform as a Service (PaaS)
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.6
- 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 "./tsuru"
All URIs are relative to http://localhost
Class | Method | HTTP request | Description |
---|---|---|---|
AppApi | AppCreate | Post /1.0/apps | |
AppApi | AppDelete | Delete /1.0/apps/{app} | |
AppApi | AppGet | Get /1.0/apps/{app} | |
AppApi | AppList | Get /1.0/apps | |
AppApi | AppQuotaChange | Put /1.0/apps/{app}/quota | |
AppApi | AppQuotaGet | Get /1.0/apps/{app}/quota | |
AppApi | AppRestart | Post /1.0/apps/{app}/restart | |
AppApi | AppUpdate | Put /1.0/apps/{app} | |
AppApi | EnvGet | Get /1.0/apps/{app}/env | |
AppApi | EnvSet | Post /1.0/apps/{app}/env | |
AppApi | EnvUnset | Delete /1.0/apps/{app}/env | |
AuthApi | AssignRoleToToken | Post /1.6/roles/{role_name}/token | |
AuthApi | DissociateRoleFromToken | Delete /1.6/roles/{role_name}/token/{token_id} | |
AuthApi | TeamTokenCreate | Post /1.6/tokens | |
AuthApi | TeamTokenDelete | Delete /1.6/tokens/{token_id} | |
AuthApi | TeamTokenInfo | Get /1.7/tokens/{token_id} | |
AuthApi | TeamTokenUpdate | Put /1.6/tokens/{token_id} | |
AuthApi | TeamTokensList | Get /1.6/tokens | |
ClusterApi | ClusterCreate | Post /1.3/provisioner/clusters | |
ClusterApi | ClusterDelete | Delete /1.3/provisioner/clusters/{cluster_name} | |
ClusterApi | ClusterInfo | Get /1.8/provisioner/clusters/{cluster_name} | |
ClusterApi | ClusterList | Get /1.3/provisioner/clusters | |
ClusterApi | ClusterUpdate | Post /1.4/provisioner/clusters/{cluster_name} | |
ClusterApi | ProvisionerList | Get /1.7/provisioner | |
EventApi | EventCancel | Post /1.1/events/{eventid}/cancel | |
EventApi | WebhookCreate | Post /1.6/events/webhooks | |
EventApi | WebhookDelete | Delete /1.6/events/webhooks/{name} | |
EventApi | WebhookGet | Get /1.6/events/webhooks/{name} | |
EventApi | WebhookList | Get /1.6/events/webhooks | |
EventApi | WebhookUpdate | Put /1.6/events/webhooks/{name} | |
NodeApi | NodeAdd | Post /1.2/node | |
NodeApi | NodeDelete | Delete /1.2/node/{address} | |
NodeApi | NodeGet | Get /1.2/node/{address} | |
NodeApi | NodeList | Get /1.2/node | |
NodeApi | NodeUpdate | Put /1.2/node | |
PlatformApi | PlatformAdd | Post /1.0/platforms | |
PlatformApi | PlatformDelete | Delete /1.0/platforms/{platform} | |
PlatformApi | PlatformInfo | Get /1.6/platforms/{platform} | |
PlatformApi | PlatformList | Get /1.0/platforms | |
PlatformApi | PlatformRollback | Post /1.6/platforms/{platform}/rollback | |
PlatformApi | PlatformUpdate | Put /1.0/platforms/{platform} | |
PoolApi | PoolCreate | Post /1.0/pools | |
PoolApi | PoolDelete | Delete /pools/{pool} | |
PoolApi | PoolGet | Get /pools/{pool} | |
PoolApi | PoolList | Get /1.0/pools | |
PoolApi | PoolUpdate | Put /pools/{pool} | |
ServiceApi | InstanceDelete | Delete /1.0/services/{service}/instances/{instance} | |
ServiceApi | InstanceGet | Get /1.0/services/{service}/instances/{instance} | |
ServiceApi | InstanceUpdate | Put /1.0/services/{service}/instances/{instance} | |
ServiceApi | InstancesList | Get /1.0/services/instances | |
ServiceApi | ServiceBrokerCreate | Post /1.7/brokers | |
ServiceApi | ServiceBrokerDelete | Delete /1.7/brokers/{name} | |
ServiceApi | ServiceBrokerList | Get /1.7/brokers | |
ServiceApi | ServiceBrokerUpdate | Put /1.7/brokers/{name} | |
ServiceApi | ServicesList | Get /1.0/services | |
TeamApi | TeamCreate | Post /1.0/teams | |
TeamApi | TeamDelete | Delete /1.0/teams/{team} | |
TeamApi | TeamGet | Get /1.4/teams/{team} | |
TeamApi | TeamUpdate | Put /1.6/teams/{team} | |
TeamApi | TeamsList | Get /1.0/teams | |
UserApi | APITokenGet | Get /1.0/users/api-key | |
UserApi | APITokenRegenerate | Post /1.0/users/api-key | |
UserApi | ChangePassword | Put /1.0/users/password | |
UserApi | ResetPassword | Post /1.0/users/{email}/password | |
UserApi | SSHKeyAdd | Post /1.0/users/keys | |
UserApi | SSHKeyList | Get /1.0/users/keys | |
UserApi | SSHKeyRemove | Delete /1.0/users/keys/{key} | |
UserApi | UserCreate | Post /1.0/users | |
UserApi | UserDelete | Delete /1.0/users | |
UserApi | UserGet | Get /1.0/users/info | |
UserApi | UserQuotaChange | Put /1.0/users/{email}/quota | |
UserApi | UserQuotaGet | Get /1.0/users/{email}/quota | |
UserApi | UserTokenDelete | Delete /1.0/users/tokens | |
UserApi | UsersList | Get /1.0/users | |
VolumeApi | VolumeBind | Post /1.4/volumes/{volume}/bind | |
VolumeApi | VolumeCreate | Post /1.4/volumes | |
VolumeApi | VolumeDelete | Delete /1.4/volumes/{volume} | |
VolumeApi | VolumeGet | Get /1.4/volumes/{volume} | |
VolumeApi | VolumeList | Get /1.4/volumes | |
VolumeApi | VolumePlansList | Get /1.4/volumeplans | |
VolumeApi | VolumeUnbind | Delete /1.4/volumes/{volume}/bind |
- App
- AppCreateResponse
- AssignTokenArgs
- ChangePasswordData
- Cluster
- ClusterHelp
- Env
- EnvSetData
- EventCancelArgs
- Lock
- Machine
- MiniApp
- Node
- NodeAddData
- NodeCheck
- NodeCheckResult
- NodeGetResponse
- NodeListResponse
- NodeStatus
- NodeUpdateData
- PermissionUser
- Plan
- Platform
- PlatformInfo
- Pool
- PoolCreateData
- PoolUpdateData
- Provisioner
- Quota
- RoleInstance
- RoleUser
- Router
- Service
- ServiceBroker
- ServiceBrokerConfig
- ServiceBrokerConfigAuthConfig
- ServiceBrokerConfigAuthConfigBasicAuthConfig
- ServiceBrokerConfigAuthConfigBearerConfig
- ServiceBrokerList
- ServiceInstance
- ServiceInstanceBoundUnit
- ServiceInstanceInfo
- ServiceInstanceUpdateData
- SshKeyAddData
- SshKeyListResponse
- Team
- TeamCreateArgs
- TeamInfo
- TeamToken
- TeamTokenCreateArgs
- TeamTokenUpdateArgs
- TeamUpdateArgs
- Unit
- Url
- User
- UserData
- UserQuotaViewResponse
- Volume
- VolumeBind
- VolumeBindData
- VolumeBindId
- VolumePlan
- Webhook
- WebhookEventFilter
- 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)