All URIs are relative to https://api.machines.dev/v1
| Method | HTTP request | Description |
|---|---|---|
| SecretCreate | Post /apps/{app_name}/secrets/{secret_name} | Create or update Secret |
| SecretDelete | Delete /apps/{app_name}/secrets/{secret_name} | Delete an app secret |
| SecretGet | Get /apps/{app_name}/secrets/{secret_name} | Get an app secret |
| SecretkeyDecrypt | Post /apps/{app_name}/secretkeys/{secret_name}/decrypt | Decrypt with a secret key |
| SecretkeyDelete | Delete /apps/{app_name}/secretkeys/{secret_name} | Delete an app's secret key |
| SecretkeyEncrypt | Post /apps/{app_name}/secretkeys/{secret_name}/encrypt | Encrypt with a secret key |
| SecretkeyGenerate | Post /apps/{app_name}/secretkeys/{secret_name}/generate | Generate a random secret key |
| SecretkeyGet | Get /apps/{app_name}/secretkeys/{secret_name} | Get an app's secret key |
| SecretkeySet | Post /apps/{app_name}/secretkeys/{secret_name} | Create or update a secret key |
| SecretkeySign | Post /apps/{app_name}/secretkeys/{secret_name}/sign | Sign with a secret key |
| SecretkeyVerify | Post /apps/{app_name}/secretkeys/{secret_name}/verify | Verify with a secret key |
| SecretkeysList | Get /apps/{app_name}/secretkeys | List secret keys belonging to an app |
| SecretsList | Get /apps/{app_name}/secrets | List app secrets belonging to an app |
SetAppSecretResponse SecretCreate(ctx, appName, secretName).Request(request).Execute()
Create or update Secret
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/OutboundSpade/FlyMachines"
)
func main() {
appName := "appName_example" // string | Fly App Name
secretName := "secretName_example" // string | App secret name
request := *openapiclient.NewSetAppSecretRequest() // SetAppSecretRequest | Create app secret request
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SecretsAPI.SecretCreate(context.Background(), appName, secretName).Request(request).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SecretsAPI.SecretCreate``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SecretCreate`: SetAppSecretResponse
fmt.Fprintf(os.Stdout, "Response from `SecretsAPI.SecretCreate`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| appName | string | Fly App Name | |
| secretName | string | App secret name |
Other parameters are passed through a pointer to a apiSecretCreateRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
request | SetAppSecretRequest | Create app secret request |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
SecretDelete(ctx, appName, secretName).Execute()
Delete an app secret
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/OutboundSpade/FlyMachines"
)
func main() {
appName := "appName_example" // string | Fly App Name
secretName := "secretName_example" // string | App secret name
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
r, err := apiClient.SecretsAPI.SecretDelete(context.Background(), appName, secretName).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SecretsAPI.SecretDelete``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| appName | string | Fly App Name | |
| secretName | string | App secret name |
Other parameters are passed through a pointer to a apiSecretDeleteRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
(empty response body)
No authorization required
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AppSecret SecretGet(ctx, appName, secretName).Version(version).ShowSecrets(showSecrets).Execute()
Get an app secret
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/OutboundSpade/FlyMachines"
)
func main() {
appName := "appName_example" // string | Fly App Name
secretName := "secretName_example" // string | App secret name
version := "version_example" // string | Minimum secrets version to return. Returned when setting a new secret (optional)
showSecrets := true // bool | Show the secret value. (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SecretsAPI.SecretGet(context.Background(), appName, secretName).Version(version).ShowSecrets(showSecrets).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SecretsAPI.SecretGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SecretGet`: AppSecret
fmt.Fprintf(os.Stdout, "Response from `SecretsAPI.SecretGet`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| appName | string | Fly App Name | |
| secretName | string | App secret name |
Other parameters are passed through a pointer to a apiSecretGetRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
version | string | Minimum secrets version to return. Returned when setting a new secret | showSecrets | bool | Show the secret value. |
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
DecryptSecretkeyResponse SecretkeyDecrypt(ctx, appName, secretName).Request(request).Version(version).Execute()
Decrypt with a secret key
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/OutboundSpade/FlyMachines"
)
func main() {
appName := "appName_example" // string | Fly App Name
secretName := "secretName_example" // string | Secret key name
request := *openapiclient.NewDecryptSecretkeyRequest() // DecryptSecretkeyRequest | Decrypt with secret key request
version := "version_example" // string | Minimum secrets version to return. Returned when setting a new secret (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SecretsAPI.SecretkeyDecrypt(context.Background(), appName, secretName).Request(request).Version(version).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SecretsAPI.SecretkeyDecrypt``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SecretkeyDecrypt`: DecryptSecretkeyResponse
fmt.Fprintf(os.Stdout, "Response from `SecretsAPI.SecretkeyDecrypt`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| appName | string | Fly App Name | |
| secretName | string | Secret key name |
Other parameters are passed through a pointer to a apiSecretkeyDecryptRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
request | DecryptSecretkeyRequest | Decrypt with secret key request | version | string | Minimum secrets version to return. Returned when setting a new secret |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
SecretkeyDelete(ctx, appName, secretName).Execute()
Delete an app's secret key
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/OutboundSpade/FlyMachines"
)
func main() {
appName := "appName_example" // string | Fly App Name
secretName := "secretName_example" // string | Secret key name
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
r, err := apiClient.SecretsAPI.SecretkeyDelete(context.Background(), appName, secretName).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SecretsAPI.SecretkeyDelete``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| appName | string | Fly App Name | |
| secretName | string | Secret key name |
Other parameters are passed through a pointer to a apiSecretkeyDeleteRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
(empty response body)
No authorization required
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
EncryptSecretkeyResponse SecretkeyEncrypt(ctx, appName, secretName).Request(request).Version(version).Execute()
Encrypt with a secret key
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/OutboundSpade/FlyMachines"
)
func main() {
appName := "appName_example" // string | Fly App Name
secretName := "secretName_example" // string | Secret key name
request := *openapiclient.NewEncryptSecretkeyRequest() // EncryptSecretkeyRequest | Encrypt with secret key request
version := "version_example" // string | Minimum secrets version to return. Returned when setting a new secret (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SecretsAPI.SecretkeyEncrypt(context.Background(), appName, secretName).Request(request).Version(version).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SecretsAPI.SecretkeyEncrypt``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SecretkeyEncrypt`: EncryptSecretkeyResponse
fmt.Fprintf(os.Stdout, "Response from `SecretsAPI.SecretkeyEncrypt`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| appName | string | Fly App Name | |
| secretName | string | Secret key name |
Other parameters are passed through a pointer to a apiSecretkeyEncryptRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
request | EncryptSecretkeyRequest | Encrypt with secret key request | version | string | Minimum secrets version to return. Returned when setting a new secret |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
SetSecretkeyResponse SecretkeyGenerate(ctx, appName, secretName).Request(request).Execute()
Generate a random secret key
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/OutboundSpade/FlyMachines"
)
func main() {
appName := "appName_example" // string | Fly App Name
secretName := "secretName_example" // string | Secret key name
request := *openapiclient.NewSetSecretkeyRequest() // SetSecretkeyRequest | generate secret key request
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SecretsAPI.SecretkeyGenerate(context.Background(), appName, secretName).Request(request).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SecretsAPI.SecretkeyGenerate``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SecretkeyGenerate`: SetSecretkeyResponse
fmt.Fprintf(os.Stdout, "Response from `SecretsAPI.SecretkeyGenerate`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| appName | string | Fly App Name | |
| secretName | string | Secret key name |
Other parameters are passed through a pointer to a apiSecretkeyGenerateRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
request | SetSecretkeyRequest | generate secret key request |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
SecretKey SecretkeyGet(ctx, appName, secretName).Version(version).Execute()
Get an app's secret key
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/OutboundSpade/FlyMachines"
)
func main() {
appName := "appName_example" // string | Fly App Name
secretName := "secretName_example" // string | Secret key name
version := "version_example" // string | Minimum secrets version to return. Returned when setting a new secret (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SecretsAPI.SecretkeyGet(context.Background(), appName, secretName).Version(version).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SecretsAPI.SecretkeyGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SecretkeyGet`: SecretKey
fmt.Fprintf(os.Stdout, "Response from `SecretsAPI.SecretkeyGet`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| appName | string | Fly App Name | |
| secretName | string | Secret key name |
Other parameters are passed through a pointer to a apiSecretkeyGetRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
version | string | Minimum secrets version to return. Returned when setting a new secret |
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
SetSecretkeyResponse SecretkeySet(ctx, appName, secretName).Request(request).Execute()
Create or update a secret key
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/OutboundSpade/FlyMachines"
)
func main() {
appName := "appName_example" // string | Fly App Name
secretName := "secretName_example" // string | Secret key name
request := *openapiclient.NewSetSecretkeyRequest() // SetSecretkeyRequest | Create secret key request
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SecretsAPI.SecretkeySet(context.Background(), appName, secretName).Request(request).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SecretsAPI.SecretkeySet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SecretkeySet`: SetSecretkeyResponse
fmt.Fprintf(os.Stdout, "Response from `SecretsAPI.SecretkeySet`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| appName | string | Fly App Name | |
| secretName | string | Secret key name |
Other parameters are passed through a pointer to a apiSecretkeySetRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
request | SetSecretkeyRequest | Create secret key request |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
SignSecretkeyResponse SecretkeySign(ctx, appName, secretName).Request(request).Version(version).Execute()
Sign with a secret key
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/OutboundSpade/FlyMachines"
)
func main() {
appName := "appName_example" // string | Fly App Name
secretName := "secretName_example" // string | Secret key name
request := *openapiclient.NewSignSecretkeyRequest() // SignSecretkeyRequest | Sign with secret key request
version := "version_example" // string | Minimum secrets version to return. Returned when setting a new secret (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SecretsAPI.SecretkeySign(context.Background(), appName, secretName).Request(request).Version(version).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SecretsAPI.SecretkeySign``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SecretkeySign`: SignSecretkeyResponse
fmt.Fprintf(os.Stdout, "Response from `SecretsAPI.SecretkeySign`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| appName | string | Fly App Name | |
| secretName | string | Secret key name |
Other parameters are passed through a pointer to a apiSecretkeySignRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
request | SignSecretkeyRequest | Sign with secret key request | version | string | Minimum secrets version to return. Returned when setting a new secret |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
SecretkeyVerify(ctx, appName, secretName).Request(request).Version(version).Execute()
Verify with a secret key
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/OutboundSpade/FlyMachines"
)
func main() {
appName := "appName_example" // string | Fly App Name
secretName := "secretName_example" // string | Secret key name
request := *openapiclient.NewVerifySecretkeyRequest() // VerifySecretkeyRequest | Verify with secret key request
version := "version_example" // string | Minimum secrets version to return. Returned when setting a new secret (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
r, err := apiClient.SecretsAPI.SecretkeyVerify(context.Background(), appName, secretName).Request(request).Version(version).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SecretsAPI.SecretkeyVerify``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| appName | string | Fly App Name | |
| secretName | string | Secret key name |
Other parameters are passed through a pointer to a apiSecretkeyVerifyRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
request | VerifySecretkeyRequest | Verify with secret key request | version | string | Minimum secrets version to return. Returned when setting a new secret |
(empty response body)
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
SecretKeys SecretkeysList(ctx, appName).Version(version).Types(types).Execute()
List secret keys belonging to an app
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/OutboundSpade/FlyMachines"
)
func main() {
appName := "appName_example" // string | Fly App Name
version := "version_example" // string | Minimum secrets version to return. Returned when setting a new secret (optional)
types := "types_example" // string | Comma-seperated list of secret keys to list (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SecretsAPI.SecretkeysList(context.Background(), appName).Version(version).Types(types).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SecretsAPI.SecretkeysList``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SecretkeysList`: SecretKeys
fmt.Fprintf(os.Stdout, "Response from `SecretsAPI.SecretkeysList`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| appName | string | Fly App Name |
Other parameters are passed through a pointer to a apiSecretkeysListRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
version | string | Minimum secrets version to return. Returned when setting a new secret | types | string | Comma-seperated list of secret keys to list |
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AppSecrets SecretsList(ctx, appName).Version(version).ShowSecrets(showSecrets).Execute()
List app secrets belonging to an app
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/OutboundSpade/FlyMachines"
)
func main() {
appName := "appName_example" // string | Fly App Name
version := "version_example" // string | Minimum secrets version to return. Returned when setting a new secret (optional)
showSecrets := true // bool | Show the secret values. (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SecretsAPI.SecretsList(context.Background(), appName).Version(version).ShowSecrets(showSecrets).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SecretsAPI.SecretsList``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SecretsList`: AppSecrets
fmt.Fprintf(os.Stdout, "Response from `SecretsAPI.SecretsList`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| appName | string | Fly App Name |
Other parameters are passed through a pointer to a apiSecretsListRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
version | string | Minimum secrets version to return. Returned when setting a new secret | showSecrets | bool | Show the secret values. |
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]