Documentation ¶
Index ¶
- Variables
- func CacheExpires(r *http.Response) time.Time
- type APIClient
- type APIResponse
- type Any
- type ApiToken
- type ApiTokenMetadata
- type ApiTokenSpec
- type Artifact
- type BasicAuth
- type Configuration
- type Deployment
- type DeploymentMetadata
- type DeploymentRestoreStrategy
- type DeploymentSpec
- type DeploymentStartFromSavepoint
- type DeploymentStatus
- type DeploymentTarget
- type DeploymentTargetMetadata
- type DeploymentTargetSpec
- type DeploymentTargetsApiService
- func (a *DeploymentTargetsApiService) CreateDeploymentTarget(ctx context.Context, namespace string, body DeploymentTarget) (DeploymentTarget, *http.Response, error)
- func (a *DeploymentTargetsApiService) DeleteDeploymentTarget(ctx context.Context, namespace string, name string) (DeploymentTarget, *http.Response, error)
- func (a *DeploymentTargetsApiService) GetDeploymentTarget(ctx context.Context, namespace string, name string) (DeploymentTarget, *http.Response, error)
- func (a *DeploymentTargetsApiService) GetDeploymentTargets(ctx context.Context, namespace string) (ResourceListDeploymentTarget, *http.Response, error)
- type DeploymentTemplate
- type DeploymentTemplateMetadata
- type DeploymentTemplateSpec
- type DeploymentUpgradeStrategy
- type DeploymentsApiService
- func (a *DeploymentsApiService) CreateDeployment(ctx context.Context, namespace string, body Deployment) (Deployment, *http.Response, error)
- func (a *DeploymentsApiService) DeleteDeployment(ctx context.Context, namespace string, deploymentId string) (Deployment, *http.Response, error)
- func (a *DeploymentsApiService) GetDeployment(ctx context.Context, namespace string, deploymentId string) (Deployment, *http.Response, error)
- func (a *DeploymentsApiService) GetDeployments(ctx context.Context, namespace string, localVarOptionals *GetDeploymentsOpts) (ResourceListDeployment, *http.Response, error)
- func (a *DeploymentsApiService) UpdateDeployment(ctx context.Context, namespace string, deploymentId string, body Deployment) (Deployment, *http.Response, error)
- type EnvVar
- type Event
- type EventMetadata
- type EventSpec
- type EventsApiService
- type Failure
- type GenericSwaggerError
- type GetDeploymentsOpts
- type GetEventsOpts
- type GetJobsOpts
- type GetSavepointsOpts
- type IterableRoleBindingSubject
- type IterableRoleRule
- type Job
- type JobDeploymentTarget
- type JobMetadata
- type JobSpec
- type JobStatus
- type JobsApiService
- type JsonNode
- type JsonPatchGeneric
- type KubernetesOptions
- type KubernetesTarget
- type License
- type LicenseMetadata
- type LicenseSpec
- type LocalObjectReference
- type Logging
- type Namespace
- type NamespaceMetadata
- type NamespaceStatus
- type NamespacesApiService
- func (a *NamespacesApiService) DeleteNamespace(ctx context.Context, name string) (Namespace, *http.Response, error)
- func (a *NamespacesApiService) GetNamespace(ctx context.Context, name string) (Namespace, *http.Response, error)
- func (a *NamespacesApiService) ListNamespaces(ctx context.Context) (ResourceListNamespace, *http.Response, error)
- func (a *NamespacesApiService) PostNamespace(ctx context.Context, localVarOptionals *PostNamespaceOpts) (Namespace, *http.Response, error)
- type Pods
- type PostNamespaceOpts
- type ResourceListDeployment
- type ResourceListDeploymentTarget
- type ResourceListEvent
- type ResourceListJob
- type ResourceListMetadata
- type ResourceListNamespace
- type ResourceListRole
- type ResourceListRoleBinding
- type ResourceListSecretValue
- type ResourceQuota
- type ResourceQuotaQuantity
- type ResourceQuotaSpec
- type ResourceQuotaStatus
- type ResourceSpec
- type RevisionInformation
- type Role
- type RoleBinding
- type RoleBindingMetadata
- type RoleBindingRoleRef
- type RoleBindingSpec
- type RoleMetadata
- type RoleSpec
- type Savepoint
- type SavepointMetadata
- type SavepointSpec
- type SavepointStatus
- type SavepointsApiService
- func (a *SavepointsApiService) CreateSavepoint(ctx context.Context, namespace string, body Savepoint) (Savepoint, *http.Response, error)
- func (a *SavepointsApiService) GetSavepoint(ctx context.Context, namespace string, savepointId string) (Savepoint, *http.Response, error)
- func (a *SavepointsApiService) GetSavepoints(ctx context.Context, namespace string, localVarOptionals *GetSavepointsOpts) ([]Savepoint, *http.Response, error)
- type SecretValue
- type SecretValueMetadata
- type SecretValueSpec
- type SecretValuesApiService
- func (a *SecretValuesApiService) CreateSecretValue(ctx context.Context, namespace string, body SecretValue) (SecretValue, *http.Response, error)
- func (a *SecretValuesApiService) DeleteSecretValue(ctx context.Context, namespace string, name string) (SecretValue, *http.Response, error)
- func (a *SecretValuesApiService) GetSecretValue(ctx context.Context, namespace string, name string) (SecretValue, *http.Response, error)
- func (a *SecretValuesApiService) GetSecretValues(ctx context.Context, namespace string) (ResourceListSecretValue, *http.Response, error)
- func (a *SecretValuesApiService) UpdateSecretValue(ctx context.Context, namespace string, name string, body SecretValue) (SecretValue, *http.Response, error)
- type StatusApiService
- type SystemInformation
- type SystemInformationStatus
- type VolumeAndMount
Constants ¶
This section is empty.
Variables ¶
var ( // ContextOAuth2 takes a oauth2.TokenSource as authentication for the request. ContextOAuth2 = contextKey("token") // ContextBasicAuth takes BasicAuth as authentication for the request. ContextBasicAuth = contextKey("basic") // ContextAccessToken takes a string oauth2 access token as authentication for the request. ContextAccessToken = contextKey("accesstoken") )
Functions ¶
Types ¶
type APIClient ¶
type APIClient struct { DeploymentTargetsApi *DeploymentTargetsApiService DeploymentsApi *DeploymentsApiService EventsApi *EventsApiService JobsApi *JobsApiService NamespacesApi *NamespacesApiService SavepointsApi *SavepointsApiService SecretValuesApi *SecretValuesApiService StatusApi *StatusApiService // contains filtered or unexported fields }
APIClient manages communication with the AppManager API API v1.0 In most cases there should be only one, shared, APIClient.
func NewAPIClient ¶
func NewAPIClient(cfg *Configuration) *APIClient
NewAPIClient creates a new API client. Requires a userAgent string describing your application. optionally a custom http.Client to allow for advanced features such as caching.
func (*APIClient) ChangeBasePath ¶
Change base path to allow switching to mocks
func (*APIClient) Configuration ¶
func (c *APIClient) Configuration() Configuration
Configuration gets the client's current configuration
type APIResponse ¶
type APIResponse struct { *http.Response `json:"-"` Message string `json:"message,omitempty"` // Operation is the name of the swagger operation. Operation string `json:"operation,omitempty"` // RequestURL is the request URL. This value is always available, even if the // embedded *http.Response is nil. RequestURL string `json:"url,omitempty"` // Method is the HTTP method used for the request. This value is always // available, even if the embedded *http.Response is nil. Method string `json:"method,omitempty"` // Payload holds the contents of the response body (which may be nil or empty). // This is provided here as the raw response.Body() reader will have already // been drained. Payload []byte `json:"-"` }
func NewAPIResponse ¶
func NewAPIResponse(r *http.Response) *APIResponse
func NewAPIResponseWithError ¶
func NewAPIResponseWithError(errorMessage string) *APIResponse
type ApiToken ¶
type ApiToken struct { Kind string `json:"kind,omitempty"` ApiVersion string `json:"apiVersion,omitempty"` Metadata *ApiTokenMetadata `json:"metadata"` Spec *ApiTokenSpec `json:"spec,omitempty"` }
type ApiTokenMetadata ¶
type ApiTokenSpec ¶
type ApiTokenSpec struct {
Token string `json:"token,omitempty"`
}
type Artifact ¶
type Artifact struct { Kind string `json:"kind"` JarUri string `json:"jarUri"` MainArgs string `json:"mainArgs,omitempty"` EntryClass string `json:"entryClass,omitempty"` FlinkVersion string `json:"flinkVersion,omitempty"` FlinkImageRegistry string `json:"flinkImageRegistry,omitempty"` FlinkImageRepository string `json:"flinkImageRepository,omitempty"` FlinkImageTag string `json:"flinkImageTag,omitempty"` }
type BasicAuth ¶
type BasicAuth struct { UserName string `json:"userName,omitempty"` Password string `json:"password,omitempty"` }
BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth
type Configuration ¶
type Configuration struct { BasePath string `json:"basePath,omitempty"` Host string `json:"host,omitempty"` Scheme string `json:"scheme,omitempty"` DefaultHeader map[string]string `json:"defaultHeader,omitempty"` UserAgent string `json:"userAgent,omitempty"` HTTPClient *http.Client }
func NewConfiguration ¶
func NewConfiguration() *Configuration
func (*Configuration) AddDefaultHeader ¶
func (c *Configuration) AddDefaultHeader(key string, value string)
type Deployment ¶
type Deployment struct { Kind string `json:"kind,omitempty"` ApiVersion string `json:"apiVersion,omitempty"` Metadata *DeploymentMetadata `json:"metadata"` Spec *DeploymentSpec `json:"spec"` Status *DeploymentStatus `json:"status,omitempty"` }
type DeploymentMetadata ¶
type DeploymentMetadata struct { Id string `json:"id,omitempty"` Name string `json:"name,omitempty"` Namespace string `json:"namespace,omitempty"` CreatedAt time.Time `json:"createdAt,omitempty"` ModifiedAt time.Time `json:"modifiedAt,omitempty"` Labels map[string]string `json:"labels,omitempty"` Annotations map[string]string `json:"annotations,omitempty"` ResourceVersion int32 `json:"resourceVersion,omitempty"` }
type DeploymentSpec ¶
type DeploymentSpec struct { State string `json:"state"` UpgradeStrategy *DeploymentUpgradeStrategy `json:"upgradeStrategy"` RestoreStrategy *DeploymentRestoreStrategy `json:"restoreStrategy,omitempty"` StartFromSavepoint *DeploymentStartFromSavepoint `json:"startFromSavepoint,omitempty"` DeploymentTargetId string `json:"deploymentTargetId"` MaxSavepointCreationAttempts int32 `json:"maxSavepointCreationAttempts,omitempty"` MaxJobCreationAttempts int32 `json:"maxJobCreationAttempts,omitempty"` Template *DeploymentTemplate `json:"template"` }
type DeploymentStartFromSavepoint ¶
type DeploymentStartFromSavepoint struct {
Kind string `json:"kind,omitempty"`
}
type DeploymentStatus ¶
type DeploymentStatus struct {
State string `json:"state,omitempty"`
}
type DeploymentTarget ¶
type DeploymentTarget struct { Kind string `json:"kind,omitempty"` ApiVersion string `json:"apiVersion,omitempty"` Metadata *DeploymentTargetMetadata `json:"metadata"` Spec *DeploymentTargetSpec `json:"spec"` }
type DeploymentTargetMetadata ¶
type DeploymentTargetMetadata struct { Id string `json:"id,omitempty"` Name string `json:"name"` Namespace string `json:"namespace,omitempty"` CreatedAt time.Time `json:"createdAt,omitempty"` ModifiedAt time.Time `json:"modifiedAt,omitempty"` Labels map[string]string `json:"labels,omitempty"` Annotations map[string]string `json:"annotations,omitempty"` ResourceVersion int32 `json:"resourceVersion,omitempty"` }
type DeploymentTargetSpec ¶
type DeploymentTargetSpec struct { Kubernetes *KubernetesTarget `json:"kubernetes"` DeploymentPatchSet []JsonPatchGeneric `json:"deploymentPatchSet,omitempty"` }
type DeploymentTargetsApiService ¶
type DeploymentTargetsApiService service
func (*DeploymentTargetsApiService) CreateDeploymentTarget ¶
func (a *DeploymentTargetsApiService) CreateDeploymentTarget(ctx context.Context, namespace string, body DeploymentTarget) (DeploymentTarget, *http.Response, error)
DeploymentTargetsApiService Create a deployment target
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param namespace
- @param body
@return DeploymentTarget
func (*DeploymentTargetsApiService) DeleteDeploymentTarget ¶
func (a *DeploymentTargetsApiService) DeleteDeploymentTarget(ctx context.Context, namespace string, name string) (DeploymentTarget, *http.Response, error)
DeploymentTargetsApiService Delete a deployment target
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param namespace
- @param name
@return DeploymentTarget
func (*DeploymentTargetsApiService) GetDeploymentTarget ¶
func (a *DeploymentTargetsApiService) GetDeploymentTarget(ctx context.Context, namespace string, name string) (DeploymentTarget, *http.Response, error)
DeploymentTargetsApiService Get a deployment target by name
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param namespace
- @param name
@return DeploymentTarget
func (*DeploymentTargetsApiService) GetDeploymentTargets ¶
func (a *DeploymentTargetsApiService) GetDeploymentTargets(ctx context.Context, namespace string) (ResourceListDeploymentTarget, *http.Response, error)
DeploymentTargetsApiService List all deployment targets
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param namespace
@return ResourceListDeploymentTarget
type DeploymentTemplate ¶
type DeploymentTemplate struct { Metadata *DeploymentTemplateMetadata `json:"metadata,omitempty"` Spec *DeploymentTemplateSpec `json:"spec"` }
type DeploymentTemplateSpec ¶
type DeploymentTemplateSpec struct { Artifact *Artifact `json:"artifact"` Parallelism int32 `json:"parallelism,omitempty"` NumberOfTaskManagers int32 `json:"numberOfTaskManagers,omitempty"` Resources map[string]ResourceSpec `json:"resources,omitempty"` FlinkConfiguration map[string]string `json:"flinkConfiguration,omitempty"` Logging *Logging `json:"logging,omitempty"` Kubernetes *KubernetesOptions `json:"kubernetes,omitempty"` }
type DeploymentUpgradeStrategy ¶
type DeploymentUpgradeStrategy struct {
Kind string `json:"kind,omitempty"`
}
type DeploymentsApiService ¶
type DeploymentsApiService service
func (*DeploymentsApiService) CreateDeployment ¶
func (a *DeploymentsApiService) CreateDeployment(ctx context.Context, namespace string, body Deployment) (Deployment, *http.Response, error)
DeploymentsApiService Create a deployment
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param namespace
- @param body
@return Deployment
func (*DeploymentsApiService) DeleteDeployment ¶
func (a *DeploymentsApiService) DeleteDeployment(ctx context.Context, namespace string, deploymentId string) (Deployment, *http.Response, error)
DeploymentsApiService Delete deployment This operation expects the deployment to be in desired state CANCELLED
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param namespace
- @param deploymentId
@return Deployment
func (*DeploymentsApiService) GetDeployment ¶
func (a *DeploymentsApiService) GetDeployment(ctx context.Context, namespace string, deploymentId string) (Deployment, *http.Response, error)
DeploymentsApiService Get a deployment by id
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param namespace
- @param deploymentId
@return Deployment
func (*DeploymentsApiService) GetDeployments ¶
func (a *DeploymentsApiService) GetDeployments(ctx context.Context, namespace string, localVarOptionals *GetDeploymentsOpts) (ResourceListDeployment, *http.Response, error)
func (*DeploymentsApiService) UpdateDeployment ¶
func (a *DeploymentsApiService) UpdateDeployment(ctx context.Context, namespace string, deploymentId string, body Deployment) (Deployment, *http.Response, error)
DeploymentsApiService Update a deployment
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param namespace
- @param deploymentId
- @param body
@return Deployment
type Event ¶
type Event struct { Kind string `json:"kind,omitempty"` ApiVersion string `json:"apiVersion,omitempty"` Metadata *EventMetadata `json:"metadata,omitempty"` Spec *EventSpec `json:"spec,omitempty"` }
type EventMetadata ¶
type EventMetadata struct { Id string `json:"id,omitempty"` CreatedAt time.Time `json:"createdAt,omitempty"` DeploymentId string `json:"deploymentId,omitempty"` JobId string `json:"jobId,omitempty"` ResourceVersion int32 `json:"resourceVersion,omitempty"` Name string `json:"name,omitempty"` Namespace string `json:"namespace,omitempty"` }
type EventsApiService ¶
type EventsApiService service
func (*EventsApiService) GetEvents ¶
func (a *EventsApiService) GetEvents(ctx context.Context, namespace string, localVarOptionals *GetEventsOpts) (ResourceListEvent, *http.Response, error)
type GenericSwaggerError ¶
type GenericSwaggerError struct {
// contains filtered or unexported fields
}
GenericSwaggerError Provides access to the body, error and model on returned errors.
func (GenericSwaggerError) Body ¶
func (e GenericSwaggerError) Body() []byte
Body returns the raw bytes of the response
func (GenericSwaggerError) Error ¶
func (e GenericSwaggerError) Error() string
Error returns non-empty string if there was an error.
func (GenericSwaggerError) Model ¶
func (e GenericSwaggerError) Model() interface{}
Model returns the unpacked model of the error
func (GenericSwaggerError) StatusCode ¶
func (e GenericSwaggerError) StatusCode() int
StatusCode returns the response status code
func (GenericSwaggerError) WithStatusCode ¶
func (e GenericSwaggerError) WithStatusCode(statusCode int) GenericSwaggerError
type GetDeploymentsOpts ¶
type GetEventsOpts ¶
type GetJobsOpts ¶
type GetSavepointsOpts ¶
type IterableRoleBindingSubject ¶
type IterableRoleBindingSubject struct { }
type IterableRoleRule ¶
type IterableRoleRule struct { }
type Job ¶
type Job struct { Kind string `json:"kind,omitempty"` ApiVersion string `json:"apiVersion,omitempty"` Metadata *JobMetadata `json:"metadata,omitempty"` Spec *JobSpec `json:"spec,omitempty"` Status *JobStatus `json:"status,omitempty"` }
type JobDeploymentTarget ¶
type JobDeploymentTarget struct {
Kubernetes *KubernetesTarget `json:"kubernetes,omitempty"`
}
type JobMetadata ¶
type JobMetadata struct { Id string `json:"id,omitempty"` CreatedAt time.Time `json:"createdAt,omitempty"` ModifiedAt time.Time `json:"modifiedAt,omitempty"` TerminatedAt int64 `json:"terminatedAt,omitempty"` DeploymentId string `json:"deploymentId,omitempty"` Annotations map[string]string `json:"annotations,omitempty"` ResourceVersion int32 `json:"resourceVersion,omitempty"` Namespace string `json:"namespace,omitempty"` }
type JobSpec ¶
type JobSpec struct { Artifact *Artifact `json:"artifact,omitempty"` Parallelism int32 `json:"parallelism,omitempty"` FlinkConfiguration map[string]string `json:"flinkConfiguration,omitempty"` Resources map[string]ResourceSpec `json:"resources,omitempty"` SavepointLocation string `json:"savepointLocation,omitempty"` AllowNonRestoredState bool `json:"allowNonRestoredState,omitempty"` NumberOfTaskManagers int32 `json:"numberOfTaskManagers,omitempty"` Logging *Logging `json:"logging,omitempty"` Kubernetes *KubernetesOptions `json:"kubernetes,omitempty"` DeploymentTarget *JobDeploymentTarget `json:"deploymentTarget,omitempty"` }
type JobsApiService ¶
type JobsApiService service
func (*JobsApiService) GetJob ¶
func (a *JobsApiService) GetJob(ctx context.Context, namespace string, jobId string) (Job, *http.Response, error)
JobsApiService Get a job by id
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param namespace
- @param jobId
@return Job
func (*JobsApiService) GetJobs ¶
func (a *JobsApiService) GetJobs(ctx context.Context, namespace string, localVarOptionals *GetJobsOpts) (ResourceListJob, *http.Response, error)
type JsonNode ¶
type JsonNode struct { ValueNode bool `json:"valueNode,omitempty"` ContainerNode bool `json:"containerNode,omitempty"` MissingNode bool `json:"missingNode,omitempty"` Object bool `json:"object,omitempty"` NodeType string `json:"nodeType,omitempty"` Pojo bool `json:"pojo,omitempty"` Number bool `json:"number,omitempty"` IntegralNumber bool `json:"integralNumber,omitempty"` FloatingPointNumber bool `json:"floatingPointNumber,omitempty"` Short bool `json:"short,omitempty"` Int_ bool `json:"int,omitempty"` Long bool `json:"long,omitempty"` Float bool `json:"float,omitempty"` Double bool `json:"double,omitempty"` BigDecimal bool `json:"bigDecimal,omitempty"` BigInteger bool `json:"bigInteger,omitempty"` Textual bool `json:"textual,omitempty"` Boolean bool `json:"boolean,omitempty"` Binary bool `json:"binary,omitempty"` Array bool `json:"array,omitempty"` Null bool `json:"null,omitempty"` }
type JsonPatchGeneric ¶
type JsonPatchGeneric struct { Op string `json:"op"` Path string `json:"path"` Value Any `json:"value,omitempty"` From string `json:"from,omitempty"` }
Since Swagger 2 doesn't have oneOf support, this definition should fit all JSON Patch objects.
type KubernetesOptions ¶
type KubernetesOptions struct {
Pods *Pods `json:"pods,omitempty"`
}
type KubernetesTarget ¶
type KubernetesTarget struct {
Namespace string `json:"namespace,omitempty"`
}
type License ¶
type License struct { Kind string `json:"kind,omitempty"` ApiVersion string `json:"apiVersion,omitempty"` Metadata *LicenseMetadata `json:"metadata"` Spec *LicenseSpec `json:"spec"` }
type LicenseMetadata ¶
type LicenseSpec ¶
type LocalObjectReference ¶
type LocalObjectReference struct {
Name string `json:"name"`
}
type Namespace ¶
type Namespace struct { Kind string `json:"kind,omitempty"` ApiVersion string `json:"apiVersion,omitempty"` Metadata *NamespaceMetadata `json:"metadata"` Status *NamespaceStatus `json:"status,omitempty"` }
type NamespaceMetadata ¶
type NamespaceStatus ¶
type NamespaceStatus struct {
State string `json:"state,omitempty"`
}
type NamespacesApiService ¶
type NamespacesApiService service
func (*NamespacesApiService) DeleteNamespace ¶
func (a *NamespacesApiService) DeleteNamespace(ctx context.Context, name string) (Namespace, *http.Response, error)
NamespacesApiService Delete a namespace by name
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param name
@return Namespace
func (*NamespacesApiService) GetNamespace ¶
func (a *NamespacesApiService) GetNamespace(ctx context.Context, name string) (Namespace, *http.Response, error)
NamespacesApiService Get a namespace by name
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param name
@return Namespace
func (*NamespacesApiService) ListNamespaces ¶
func (a *NamespacesApiService) ListNamespaces(ctx context.Context) (ResourceListNamespace, *http.Response, error)
NamespacesApiService List namespaces
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ResourceListNamespace
func (*NamespacesApiService) PostNamespace ¶
func (a *NamespacesApiService) PostNamespace(ctx context.Context, localVarOptionals *PostNamespaceOpts) (Namespace, *http.Response, error)
type Pods ¶
type Pods struct { Annotations map[string]string `json:"annotations,omitempty"` NodeSelector map[string]string `json:"nodeSelector,omitempty"` SecurityContext *core.SecurityContext `json:"securityContext,omitempty"` Affinity *core.Affinity `json:"affinity,omitempty"` Tolerations []core.Toleration `json:"tolerations,omitempty"` VolumeMounts []VolumeAndMount `json:"volumeMounts,omitempty"` EnvVars []core.EnvVar `json:"envVars,omitempty"` ImagePullSecrets []core.LocalObjectReference `json:"imagePullSecrets,omitempty"` }
type PostNamespaceOpts ¶
type ResourceListDeployment ¶
type ResourceListDeployment struct { Kind string `json:"kind,omitempty"` ApiVersion string `json:"apiVersion,omitempty"` Metadata *ResourceListMetadata `json:"metadata,omitempty"` Items []Deployment `json:"items,omitempty"` }
type ResourceListDeploymentTarget ¶
type ResourceListDeploymentTarget struct { Kind string `json:"kind,omitempty"` ApiVersion string `json:"apiVersion,omitempty"` Metadata *ResourceListMetadata `json:"metadata,omitempty"` Items []DeploymentTarget `json:"items,omitempty"` }
type ResourceListEvent ¶
type ResourceListEvent struct { Kind string `json:"kind,omitempty"` ApiVersion string `json:"apiVersion,omitempty"` Metadata *ResourceListMetadata `json:"metadata,omitempty"` Items []Event `json:"items,omitempty"` }
type ResourceListJob ¶
type ResourceListJob struct { Kind string `json:"kind,omitempty"` ApiVersion string `json:"apiVersion,omitempty"` Metadata *ResourceListMetadata `json:"metadata,omitempty"` Items []Job `json:"items,omitempty"` }
type ResourceListMetadata ¶
type ResourceListMetadata struct { }
type ResourceListNamespace ¶
type ResourceListNamespace struct { Kind string `json:"kind,omitempty"` ApiVersion string `json:"apiVersion,omitempty"` Metadata *ResourceListMetadata `json:"metadata,omitempty"` Items []Namespace `json:"items,omitempty"` }
type ResourceListRole ¶
type ResourceListRole struct { Kind string `json:"kind,omitempty"` ApiVersion string `json:"apiVersion,omitempty"` Metadata *ResourceListMetadata `json:"metadata,omitempty"` Items []Role `json:"items,omitempty"` }
type ResourceListRoleBinding ¶
type ResourceListRoleBinding struct { Kind string `json:"kind,omitempty"` ApiVersion string `json:"apiVersion,omitempty"` Metadata *ResourceListMetadata `json:"metadata,omitempty"` Items []RoleBinding `json:"items,omitempty"` }
type ResourceListSecretValue ¶
type ResourceListSecretValue struct { Kind string `json:"kind,omitempty"` ApiVersion string `json:"apiVersion,omitempty"` Metadata *ResourceListMetadata `json:"metadata,omitempty"` Items []SecretValue `json:"items,omitempty"` }
type ResourceQuota ¶
type ResourceQuota struct { Kind string `json:"kind,omitempty"` ApiVersion string `json:"apiVersion,omitempty"` Spec *ResourceQuotaSpec `json:"spec,omitempty"` Status *ResourceQuotaStatus `json:"status,omitempty"` }
type ResourceQuotaQuantity ¶
type ResourceQuotaQuantity struct {
Cpu float64 `json:"cpu,omitempty"`
}
type ResourceQuotaSpec ¶
type ResourceQuotaSpec struct { Limits *ResourceQuotaQuantity `json:"limits,omitempty"` ToleratedOveruse *ResourceQuotaQuantity `json:"toleratedOveruse,omitempty"` Type_ string `json:"type,omitempty"` }
type ResourceQuotaStatus ¶
type ResourceQuotaStatus struct {
Used *ResourceQuotaQuantity `json:"used,omitempty"`
}
type ResourceSpec ¶
type RevisionInformation ¶
type Role ¶
type Role struct { Kind string `json:"kind,omitempty"` ApiVersion string `json:"apiVersion,omitempty"` Metadata *RoleMetadata `json:"metadata"` Spec *RoleSpec `json:"spec"` }
type RoleBinding ¶
type RoleBinding struct { Kind string `json:"kind,omitempty"` ApiVersion string `json:"apiVersion,omitempty"` Metadata *RoleBindingMetadata `json:"metadata"` Spec *RoleBindingSpec `json:"spec"` }
type RoleBindingMetadata ¶
type RoleBindingMetadata struct { Id string `json:"id,omitempty"` Name string `json:"name"` Namespace string `json:"namespace,omitempty"` CreatedAt time.Time `json:"createdAt,omitempty"` ModifiedAt time.Time `json:"modifiedAt,omitempty"` Labels map[string]string `json:"labels,omitempty"` ResourceVersion int32 `json:"resourceVersion,omitempty"` }
type RoleBindingRoleRef ¶
type RoleBindingSpec ¶
type RoleBindingSpec struct { Subjects *IterableRoleBindingSubject `json:"subjects"` RoleRef *RoleBindingRoleRef `json:"roleRef"` }
type RoleMetadata ¶
type RoleMetadata struct { Id string `json:"id,omitempty"` Name string `json:"name"` Namespace string `json:"namespace,omitempty"` CreatedAt time.Time `json:"createdAt,omitempty"` ModifiedAt time.Time `json:"modifiedAt,omitempty"` Labels map[string]string `json:"labels,omitempty"` ResourceVersion int32 `json:"resourceVersion,omitempty"` }
type RoleSpec ¶
type RoleSpec struct {
Rules *IterableRoleRule `json:"rules"`
}
type Savepoint ¶
type Savepoint struct { Kind string `json:"kind,omitempty"` ApiVersion string `json:"apiVersion,omitempty"` Metadata *SavepointMetadata `json:"metadata"` Status *SavepointStatus `json:"status"` Spec *SavepointSpec `json:"spec"` }
type SavepointMetadata ¶
type SavepointMetadata struct { Id string `json:"id,omitempty"` CreatedAt time.Time `json:"createdAt,omitempty"` ModifiedAt time.Time `json:"modifiedAt,omitempty"` DeploymentId string `json:"deploymentId"` JobId string `json:"jobId,omitempty"` Origin string `json:"origin,omitempty"` Annotations map[string]string `json:"annotations,omitempty"` ResourceVersion int32 `json:"resourceVersion,omitempty"` Namespace string `json:"namespace,omitempty"` }
type SavepointSpec ¶
type SavepointStatus ¶
type SavepointsApiService ¶
type SavepointsApiService service
func (*SavepointsApiService) CreateSavepoint ¶
func (a *SavepointsApiService) CreateSavepoint(ctx context.Context, namespace string, body Savepoint) (Savepoint, *http.Response, error)
SavepointsApiService Create a new savepoint
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param namespace
- @param body
@return Savepoint
func (*SavepointsApiService) GetSavepoint ¶
func (a *SavepointsApiService) GetSavepoint(ctx context.Context, namespace string, savepointId string) (Savepoint, *http.Response, error)
SavepointsApiService Get a savepoint by id
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param namespace
- @param savepointId
@return Savepoint
func (*SavepointsApiService) GetSavepoints ¶
func (a *SavepointsApiService) GetSavepoints(ctx context.Context, namespace string, localVarOptionals *GetSavepointsOpts) ([]Savepoint, *http.Response, error)
type SecretValue ¶
type SecretValue struct { Kind string `json:"kind,omitempty"` ApiVersion string `json:"apiVersion,omitempty"` Metadata *SecretValueMetadata `json:"metadata"` Spec *SecretValueSpec `json:"spec"` }
type SecretValueMetadata ¶
type SecretValueMetadata struct { Id string `json:"id,omitempty"` Name string `json:"name"` Namespace string `json:"namespace,omitempty"` CreatedAt time.Time `json:"createdAt,omitempty"` ModifiedAt time.Time `json:"modifiedAt,omitempty"` ResourceVersion int32 `json:"resourceVersion,omitempty"` Labels map[string]string `json:"labels,omitempty"` Annotations map[string]string `json:"annotations,omitempty"` }
type SecretValueSpec ¶
type SecretValueSpec struct {
Kind string `json:"kind,omitempty"`
}
type SecretValuesApiService ¶
type SecretValuesApiService service
func (*SecretValuesApiService) CreateSecretValue ¶
func (a *SecretValuesApiService) CreateSecretValue(ctx context.Context, namespace string, body SecretValue) (SecretValue, *http.Response, error)
SecretValuesApiService Create a secret value
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param namespace
- @param body
@return SecretValue
func (*SecretValuesApiService) DeleteSecretValue ¶
func (a *SecretValuesApiService) DeleteSecretValue(ctx context.Context, namespace string, name string) (SecretValue, *http.Response, error)
SecretValuesApiService Delete a secret value
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param namespace
- @param name
@return SecretValue
func (*SecretValuesApiService) GetSecretValue ¶
func (a *SecretValuesApiService) GetSecretValue(ctx context.Context, namespace string, name string) (SecretValue, *http.Response, error)
SecretValuesApiService Get a secret value by name
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param namespace
- @param name
@return SecretValue
func (*SecretValuesApiService) GetSecretValues ¶
func (a *SecretValuesApiService) GetSecretValues(ctx context.Context, namespace string) (ResourceListSecretValue, *http.Response, error)
SecretValuesApiService List all secrets values
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param namespace
@return ResourceListSecretValue
func (*SecretValuesApiService) UpdateSecretValue ¶
func (a *SecretValuesApiService) UpdateSecretValue(ctx context.Context, namespace string, name string, body SecretValue) (SecretValue, *http.Response, error)
SecretValuesApiService Update a secret value
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param namespace
- @param name
- @param body
@return SecretValue
type StatusApiService ¶
type StatusApiService service
func (*StatusApiService) GetStatus ¶
StatusApiService Check that the server is running
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
func (*StatusApiService) GetSystemInfo ¶
func (a *StatusApiService) GetSystemInfo(ctx context.Context) (SystemInformation, *http.Response, error)
StatusApiService Get system's information
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return SystemInformation
type SystemInformation ¶
type SystemInformation struct { Status *SystemInformationStatus `json:"status,omitempty"` Kind string `json:"kind,omitempty"` ApiVersion string `json:"apiVersion,omitempty"` }
type SystemInformationStatus ¶
type SystemInformationStatus struct { JvmVersion string `json:"jvmVersion,omitempty"` RevisionInformation *RevisionInformation `json:"revisionInformation,omitempty"` ResourceQuota *ResourceQuota `json:"resourceQuota,omitempty"` License *License `json:"license,omitempty"` }
type VolumeAndMount ¶
type VolumeAndMount struct { Name string `json:"name,omitempty"` Volume *core.Volume `json:"volume,omitempty"` VolumeMount *core.VolumeMount `json:"volumeMount,omitempty"` }
Source Files ¶
- api_deployment_targets.go
- api_deployments.go
- api_events.go
- api_jobs.go
- api_namespaces.go
- api_savepoints.go
- api_secret_values.go
- api_status.go
- client.go
- configuration.go
- model_any.go
- model_api_token.go
- model_api_token_metadata.go
- model_api_token_spec.go
- model_artifact.go
- model_deployment.go
- model_deployment_metadata.go
- model_deployment_restore_strategy.go
- model_deployment_spec.go
- model_deployment_start_from_savepoint.go
- model_deployment_status.go
- model_deployment_target.go
- model_deployment_target_metadata.go
- model_deployment_target_spec.go
- model_deployment_template.go
- model_deployment_template_metadata.go
- model_deployment_template_spec.go
- model_deployment_upgrade_strategy.go
- model_env_var.go
- model_event.go
- model_event_metadata.go
- model_event_spec.go
- model_failure.go
- model_iterable_role_binding_subject.go
- model_iterable_role_rule.go
- model_job.go
- model_job_deployment_target.go
- model_job_metadata.go
- model_job_spec.go
- model_job_status.go
- model_json_node.go
- model_json_patch_generic.go
- model_kubernetes_options.go
- model_kubernetes_target.go
- model_license.go
- model_license_metadata.go
- model_license_spec.go
- model_local_object_reference.go
- model_logging.go
- model_namespace.go
- model_namespace_metadata.go
- model_namespace_status.go
- model_pods.go
- model_resource_list_deployment.go
- model_resource_list_deployment_target.go
- model_resource_list_event.go
- model_resource_list_job.go
- model_resource_list_metadata.go
- model_resource_list_namespace.go
- model_resource_list_role.go
- model_resource_list_role_binding.go
- model_resource_list_secret_value.go
- model_resource_quota.go
- model_resource_quota_quantity.go
- model_resource_quota_spec.go
- model_resource_quota_status.go
- model_resource_spec.go
- model_revision_information.go
- model_role.go
- model_role_binding.go
- model_role_binding_metadata.go
- model_role_binding_role_ref.go
- model_role_binding_spec.go
- model_role_metadata.go
- model_role_spec.go
- model_savepoint.go
- model_savepoint_metadata.go
- model_savepoint_spec.go
- model_savepoint_status.go
- model_secret_value.go
- model_secret_value_metadata.go
- model_secret_value_spec.go
- model_system_information.go
- model_system_information_status.go
- model_volume_and_mount.go
- response.go