package
0.0.2
Repository: https://github.com/confluentinc/cmf-sdk-go.git
Documentation: pkg.go.dev

# README

Go API client for v1

Apache Flink job lifecycle management component for Confluent Platform.

Overview

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.GoDeprecatedClientCodegen

Installation

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 "./v1"

Documentation for API Endpoints

All URIs are relative to http://localhost:8080/cmf/api/v1

ClassMethodHTTP requestDescription
DefaultApiCreateOrUpdateApplicationPost /environments/{envName}/applicationsCreates a new Flink Application or updates an existing one in the given Environment.
DefaultApiCreateOrUpdateEnvironmentPost /environmentsCreate or update an Environment
DefaultApiDeleteApplicationDelete /environments/{envName}/applications/{appName}Deletes an Application of the given name in the given Environment.
DefaultApiDeleteEnvironmentDelete /environments/{envName}
DefaultApiGetApplicationGet /environments/{envName}/applications/{appName}Retrieve an Application of the given name in the given Environment.
DefaultApiGetApplicationsGet /environments/{envName}/applicationsRetrieve a paginated list of all applications in the given Environment.
DefaultApiGetEnvironmentGet /environments/{envName}Get/Describe an environment with the given name.
DefaultApiGetEnvironmentsGet /environmentsRetrieve a paginated list of all environments.
DefaultApiStartApplicationPost /environments/{envName}/applications/{appName}/startStarts an earlier submitted Flink Application
DefaultApiSuspendApplicationPost /environments/{envName}/applications/{appName}/suspendSuspends an earlier started Flink Application

Documentation For Models

Documentation For Authorization

Endpoints do not require authorization.

Author

# Packages

No description provided by the author

# Functions

CacheExpires helper function to determine remaining time before repeating a request.
NewAPIClient creates a new API client.
NewAPIResponse returns a new APIResonse object.
NewAPIResponseWithError returns a new APIResponse object with the provided error message.
NewConfiguration returns a new Configuration object.

# Variables

ContextAccessToken takes a string oauth2 access token as authentication for the request.
ContextAPIKey takes an APIKey as authentication for the request.
ContextBasicAuth takes BasicAuth as authentication for the request.
ContextOAuth2 takes an oauth2.TokenSource as authentication for the request.

# Structs

APIClient manages communication with the Confluent Manager for Apache Flink / CMF API v1.0 In most cases there should be only one, shared, APIClient.
APIKey provides API key based authentication to a request passed via context using ContextAPIKey.
APIResponse stores the API response returned by the server.
Application Represents a Flink Application submitted by the user.
ApplicationPageMetadata struct for ApplicationPageMetadata.
ApplicationsPage struct for ApplicationsPage.
ApplicationsPageAllOf struct for ApplicationsPageAllOf.
BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth.
Configuration stores the configuration of the API client.
Environment Environment.
EnvironmentsPage struct for EnvironmentsPage.
EnvironmentsPageAllOf struct for EnvironmentsPageAllOf.
EnvironmentsPageMetadata struct for EnvironmentsPageMetadata.
GenericOpenAPIError Provides access to the body, error and model on returned errors.
GetApplicationsOpts Optional parameters for the method 'GetApplications'.
GetEnvironmentsOpts Optional parameters for the method 'GetEnvironments'.
GetResourceBase struct for GetResourceBase.
KubernetesNamespace struct for KubernetesNamespace.
ModelError An error.
Pageable struct for Pageable.
PaginationResponse struct for PaginationResponse.
PostEnvironment Environment.
PostResourceBase struct for PostResourceBase.
ResourceWithFlinkApplicationDefaults struct for ResourceWithFlinkApplicationDefaults.
RestError The schema for all error responses.
ServerConfiguration stores the information about a server.
ServerVariable stores the information about a server variable.
Sort struct for Sort.

# Interfaces

No description provided by the author

# Type aliases

DefaultApiService DefaultApi service.