Documentation
¶
Index ¶
- Variables
- func Bool(b bool) *bool
- func Float32(f float32) *float32
- func Float64(f float64) *float64
- func Int(i int) *int
- func Int64(i int64) *int64
- func Pointer[T any](v T) *T
- func String(s string) *string
- type DeployServer
- func (s *DeployServer) CreateApp(ctx context.Context, request components.CreateAppRequest, ...) (*operations.CreateAppResponse, error)
- func (s *DeployServer) CreateAppVariable(ctx context.Context, id string, ...) (*operations.CreateAppVariableResponse, error)
- func (s *DeployServer) DeleteApp(ctx context.Context, id string, opts ...operations.Option) (*operations.DeleteAppResponse, error)
- func (s *DeployServer) DeleteAppVariable(ctx context.Context, id string, variableID string, opts ...operations.Option) (*operations.DeleteAppVariableResponse, error)
- func (s *DeployServer) DeployAppConfiguration(ctx context.Context, id string, application components.Application, ...) (*operations.DeployAppConfigurationResponse, error)
- func (s *DeployServer) DeployAppConfigurationRaw(ctx context.Context, id string, application any, opts ...operations.Option) (*operations.DeployAppConfigurationRawResponse, error)
- func (s *DeployServer) ListApps(ctx context.Context, organizationID string, pageNumber *int64, pageSize *int64, ...) (*operations.ListAppsResponse, error)
- func (s *DeployServer) ReadApp(ctx context.Context, id string, opts ...operations.Option) (*operations.ReadAppResponse, error)
- func (s *DeployServer) ReadAppCurrentStateVersion(ctx context.Context, id string, opts ...operations.Option) (*operations.ReadAppCurrentStateVersionResponse, error)
- func (s *DeployServer) ReadAppRuns(ctx context.Context, id string, pageNumber *int64, pageSize *int64, ...) (*operations.ReadAppRunsResponse, error)
- func (s *DeployServer) ReadAppVariables(ctx context.Context, id string, pageNumber *int64, pageSize *int64, ...) (*operations.ReadAppVariablesResponse, error)
- func (s *DeployServer) ReadAppVersions(ctx context.Context, id string, pageNumber *int64, pageSize *int64, ...) (*operations.ReadAppVersionsResponse, error)
- func (s *DeployServer) ReadCurrentAppVersion(ctx context.Context, id string, from *operations.From, ...) (*operations.ReadCurrentAppVersionResponse, error)
- func (s *DeployServer) ReadCurrentRun(ctx context.Context, id string, opts ...operations.Option) (*operations.ReadCurrentRunResponse, error)
- func (s *DeployServer) ReadCurrentRunLogs(ctx context.Context, id string, opts ...operations.Option) (*operations.ReadCurrentRunLogsResponse, error)
- func (s *DeployServer) ReadRun(ctx context.Context, id string, opts ...operations.Option) (*operations.ReadRunResponse, error)
- func (s *DeployServer) ReadRunLogs(ctx context.Context, id string, opts ...operations.Option) (*operations.ReadRunLogsResponse, error)
- func (s *DeployServer) ReadVersion(ctx context.Context, id string, opts ...operations.Option) (*operations.ReadVersionResponse, error)
- func (s *DeployServer) UpdateApp(ctx context.Context, id string, updateAppRequest components.UpdateAppRequest, ...) (*operations.UpdateAppResponse, error)
- type HTTPClient
- type SDKOption
- func WithClient(client HTTPClient) SDKOption
- func WithRetryConfig(retryConfig retry.Config) SDKOption
- func WithServerIndex(serverIndex int) SDKOption
- func WithServerURL(serverURL string) SDKOption
- func WithTemplatedServerURL(serverURL string, params map[string]string) SDKOption
- func WithTimeout(timeout time.Duration) SDKOption
Constants ¶
This section is empty.
Variables ¶
var ServerList = []string{
"https://deploy-server.staging.formance.cloud",
"https://deploy-server.formance.cloud",
"http://localhost:8080",
}
ServerList contains the list of servers available to the SDK
Functions ¶
Types ¶
type DeployServer ¶
type DeployServer struct {
SDKVersion string
// contains filtered or unexported fields
}
func New ¶
func New(opts ...SDKOption) *DeployServer
New creates a new instance of the SDK with the provided options
func (*DeployServer) CreateApp ¶
func (s *DeployServer) CreateApp(ctx context.Context, request components.CreateAppRequest, opts ...operations.Option) (*operations.CreateAppResponse, error)
CreateApp - Create a new app
func (*DeployServer) CreateAppVariable ¶
func (s *DeployServer) CreateAppVariable(ctx context.Context, id string, createVariableRequest components.CreateVariableRequest, opts ...operations.Option) (*operations.CreateAppVariableResponse, error)
CreateAppVariable - Create variable for an app
func (*DeployServer) DeleteApp ¶
func (s *DeployServer) DeleteApp(ctx context.Context, id string, opts ...operations.Option) (*operations.DeleteAppResponse, error)
DeleteApp - Delete an app
func (*DeployServer) DeleteAppVariable ¶
func (s *DeployServer) DeleteAppVariable(ctx context.Context, id string, variableID string, opts ...operations.Option) (*operations.DeleteAppVariableResponse, error)
DeleteAppVariable - Delete a variable from an app
func (*DeployServer) DeployAppConfiguration ¶
func (s *DeployServer) DeployAppConfiguration(ctx context.Context, id string, application components.Application, opts ...operations.Option) (*operations.DeployAppConfigurationResponse, error)
DeployAppConfiguration - Deploy a new configuration for an app
func (*DeployServer) DeployAppConfigurationRaw ¶
func (s *DeployServer) DeployAppConfigurationRaw(ctx context.Context, id string, application any, opts ...operations.Option) (*operations.DeployAppConfigurationRawResponse, error)
DeployAppConfigurationRaw - Deploy a new configuration for an app
func (*DeployServer) ListApps ¶
func (s *DeployServer) ListApps(ctx context.Context, organizationID string, pageNumber *int64, pageSize *int64, opts ...operations.Option) (*operations.ListAppsResponse, error)
ListApps - List organization apps
func (*DeployServer) ReadApp ¶
func (s *DeployServer) ReadApp(ctx context.Context, id string, opts ...operations.Option) (*operations.ReadAppResponse, error)
ReadApp - read app details
func (*DeployServer) ReadAppCurrentStateVersion ¶
func (s *DeployServer) ReadAppCurrentStateVersion(ctx context.Context, id string, opts ...operations.Option) (*operations.ReadAppCurrentStateVersionResponse, error)
ReadAppCurrentStateVersion - Get the current state version of an app
func (*DeployServer) ReadAppRuns ¶
func (s *DeployServer) ReadAppRuns(ctx context.Context, id string, pageNumber *int64, pageSize *int64, opts ...operations.Option) (*operations.ReadAppRunsResponse, error)
ReadAppRuns - Get runs of an app
func (*DeployServer) ReadAppVariables ¶
func (s *DeployServer) ReadAppVariables(ctx context.Context, id string, pageNumber *int64, pageSize *int64, opts ...operations.Option) (*operations.ReadAppVariablesResponse, error)
ReadAppVariables - Get all variables of an app
func (*DeployServer) ReadAppVersions ¶
func (s *DeployServer) ReadAppVersions(ctx context.Context, id string, pageNumber *int64, pageSize *int64, opts ...operations.Option) (*operations.ReadAppVersionsResponse, error)
ReadAppVersions - Get versions of an app
func (*DeployServer) ReadCurrentAppVersion ¶
func (s *DeployServer) ReadCurrentAppVersion(ctx context.Context, id string, from *operations.From, opts ...operations.Option) (*operations.ReadCurrentAppVersionResponse, error)
ReadCurrentAppVersion - Get the current version of an app
func (*DeployServer) ReadCurrentRun ¶
func (s *DeployServer) ReadCurrentRun(ctx context.Context, id string, opts ...operations.Option) (*operations.ReadCurrentRunResponse, error)
ReadCurrentRun - Get the current run of an app
func (*DeployServer) ReadCurrentRunLogs ¶
func (s *DeployServer) ReadCurrentRunLogs(ctx context.Context, id string, opts ...operations.Option) (*operations.ReadCurrentRunLogsResponse, error)
ReadCurrentRunLogs - Get logs of the current run of an app
func (*DeployServer) ReadRun ¶
func (s *DeployServer) ReadRun(ctx context.Context, id string, opts ...operations.Option) (*operations.ReadRunResponse, error)
ReadRun - Get the run of a version
func (*DeployServer) ReadRunLogs ¶
func (s *DeployServer) ReadRunLogs(ctx context.Context, id string, opts ...operations.Option) (*operations.ReadRunLogsResponse, error)
ReadRunLogs - Get logs of a run by its ID
func (*DeployServer) ReadVersion ¶
func (s *DeployServer) ReadVersion(ctx context.Context, id string, opts ...operations.Option) (*operations.ReadVersionResponse, error)
ReadVersion - Get a specific version
func (*DeployServer) UpdateApp ¶
func (s *DeployServer) UpdateApp(ctx context.Context, id string, updateAppRequest components.UpdateAppRequest, opts ...operations.Option) (*operations.UpdateAppResponse, error)
UpdateApp - Update an app
type HTTPClient ¶
HTTPClient provides an interface for supplying the SDK with a custom HTTP client
type SDKOption ¶
type SDKOption func(*DeployServer)
func WithClient ¶
func WithClient(client HTTPClient) SDKOption
WithClient allows the overriding of the default HTTP client used by the SDK
func WithRetryConfig ¶
func WithServerIndex ¶
WithServerIndex allows the overriding of the default server by index
func WithServerURL ¶
WithServerURL allows the overriding of the default server URL
func WithTemplatedServerURL ¶
WithTemplatedServerURL allows the overriding of the default server URL with a templated URL populated with the provided parameters
func WithTimeout ¶
WithTimeout Optional request timeout applied to each operation