Documentation
¶
Index ¶
- type Capp
- type CappList
- type CappNamespaceUri
- type CappRevision
- type CappRevisionList
- type CappRevisionNamespaceUri
- type CappRevisionQuery
- type CappRevisionUri
- type CappState
- type CappStateResponse
- type CappSummary
- type CappUri
- type ConfigMap
- type ConfigMapUri
- type Container
- type ContainerRequestUri
- type CreateCapp
- type CreateCappQuery
- type CreateMetadata
- type CreateSecretRequest
- type CreateSecretResponse
- type CreateServiceAccountRequest
- type CreateTokenQuery
- type Credentials
- type DNS
- type DeleteSecretResponse
- type DeleteUserResponse
- type ErrorResponse
- type GetCappQuery
- type GetCappStateResponse
- type GetContainersResponse
- type GetDNSResponse
- type GetPodsResponse
- type GetSecretResponse
- type GetSecretsResponse
- type KeyValue
- type List
- type ListMetadata
- type LoginOutput
- type MessageResponse
- type Metadata
- type Namespace
- type NamespaceList
- type NamespaceUri
- type PaginationParams
- type Pod
- type PodRequestUri
- type Secret
- type SecretNamespaceUriRequest
- type SecretUriRequest
- type ServiceAccount
- type ServiceAccountOutput
- type ServiceAccountRequestUri
- type StartTerminalBody
- type StartTerminalResponse
- type StartTerminalUri
- type TokenRequestResponse
- type TokenResponse
- type UpdateCapp
- type UpdateSecretRequest
- type UpdateSecretResponse
- type UpdateUserData
- type User
- type UserIdentifier
- type UserInput
- type UserRole
- type UsersOutput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Capp ¶
type Capp struct { Metadata Metadata `json:"metadata" binding:"required"` Annotations []KeyValue `json:"annotations"` Labels []KeyValue `json:"labels"` Spec cappv1alpha1.CappSpec `json:"spec" binding:"required"` Status cappv1alpha1.CappStatus `json:"status" binding:"required"` }
type CappList ¶
type CappList struct { Capps []CappSummary `json:"capps"` ListMetadata }
type CappNamespaceUri ¶
type CappNamespaceUri struct {
NamespaceName string `uri:"namespaceName" binding:"required"`
}
type CappRevision ¶
type CappRevision struct { Metadata Metadata `json:"metadata" binding:"required"` Annotations []KeyValue `json:"annotations" binding:"required"` Labels []KeyValue `json:"labels" binding:"required"` Spec cappv1alpha1.CappRevisionSpec `json:"spec" binding:"required"` Status cappv1alpha1.CappRevisionStatus `json:"status" binding:"required"` }
type CappRevisionList ¶
type CappRevisionList struct { CappRevisions []string `json:"capprevisions"` ListMetadata }
type CappRevisionQuery ¶
type CappRevisionQuery struct {
LabelSelector string `form:"labelSelector"`
}
type CappRevisionUri ¶
type CappState ¶
type CappState struct {
State string `json:"state" binding:"required,oneof=enabled disabled"`
}
type CappStateResponse ¶
type CappSummary ¶
type ConfigMapUri ¶
type ContainerRequestUri ¶
type CreateCapp ¶
type CreateCapp struct { Metadata CreateMetadata `json:"metadata" binding:"required"` Annotations []KeyValue `json:"annotations"` Labels []KeyValue `json:"labels"` Spec cappv1alpha1.CappSpec `json:"spec" binding:"required"` }
type CreateCappQuery ¶
type CreateMetadata ¶
type CreateMetadata struct {
Name string `json:"name" binding:"required"`
}
type CreateSecretRequest ¶
type CreateSecretResponse ¶
type CreateServiceAccountRequest ¶
type CreateServiceAccountRequest ServiceAccountRequestUri
type CreateTokenQuery ¶
type CreateTokenQuery struct {
ExpirationSeconds string `form:"expirationSeconds" json:"expirationSeconds"`
}
type Credentials ¶
type DNS ¶
type DNS struct { Status corev1.ConditionStatus `json:"status"` Name string `json:"name"` }
type DeleteSecretResponse ¶
type DeleteSecretResponse struct {
Message string `json:"message"`
}
type DeleteUserResponse ¶
type DeleteUserResponse struct {
Message string `json:"message"`
}
type ErrorResponse ¶
type GetCappQuery ¶
type GetCappQuery struct {
LabelSelector string `form:"labelSelector" json:"labelSelector"`
}
type GetCappStateResponse ¶
type GetContainersResponse ¶
type GetContainersResponse struct { Containers []Container `json:"containers"` ListMetadata }
type GetDNSResponse ¶
type GetDNSResponse struct {
Records []DNS `json:"records"`
}
type GetPodsResponse ¶
type GetPodsResponse struct { Pods []Pod `json:"pods"` ListMetadata }
type GetSecretResponse ¶
type GetSecretsResponse ¶
type GetSecretsResponse struct { Secrets []Secret `json:"secrets"` ListMetadata }
type ListMetadata ¶
type ListMetadata struct {
Count int `json:"count"`
}
type LoginOutput ¶
type LoginOutput struct {
Token string `json:"token"`
}
type MessageResponse ¶
type MessageResponse struct {
Message string `json:"message"`
}
type NamespaceList ¶
type NamespaceList struct { Namespaces []Namespace `json:"namespaces"` ListMetadata }
type NamespaceUri ¶
type NamespaceUri struct {
NamespaceName string `uri:"namespaceName" json:"namespaceName" binding:"required"`
}
type PaginationParams ¶
type PodRequestUri ¶
type SecretNamespaceUriRequest ¶
type SecretNamespaceUriRequest struct {
NamespaceName string `uri:"namespaceName" binding:"required"`
}
type SecretUriRequest ¶
type ServiceAccount ¶
type ServiceAccountOutput ¶
type ServiceAccountOutput struct { ServiceAccounts []string `json:"serviceAccounts"` ListMetadata }
type StartTerminalBody ¶
type StartTerminalBody struct {
Shell string `json:"shell" binding:"required,oneof=bash sh powershell cmd"`
}
type StartTerminalResponse ¶
type StartTerminalResponse struct {
ID string `json:"id"`
}
StartTerminalResponse is sent by HandleStartTerminal. The ID is a random session id that binds the original REST request and the SockJS connection. Any client api in possession of this ID can hijack the terminal_utils session.
type StartTerminalUri ¶
type StartTerminalUri struct { ClusterName string `uri:"clusterName" json:"clusterName" binding:"required"` NamespaceName string `uri:"namespaceName" json:"namespaceName" binding:"required"` PodName string `uri:"podName" json:"podName" binding:"required"` ContainerName string `uri:"containerName" json:"containerName" binding:"required"` }
type TokenRequestResponse ¶
type TokenResponse ¶
type TokenResponse struct {
Token string `json:"token"`
}
type UpdateCapp ¶
type UpdateCapp struct { Annotations []KeyValue `json:"annotations"` Labels []KeyValue `json:"labels"` Spec cappv1alpha1.CappSpec `json:"spec"` }
type UpdateSecretRequest ¶
type UpdateSecretRequest struct {
Data []KeyValue `json:"data" binding:"required"`
}
type UpdateSecretResponse ¶
type UpdateUserData ¶
type UpdateUserData struct {
Role string `json:"role" binding:"required,oneof=admin viewer contributor"`
}
type UserIdentifier ¶
type UsersOutput ¶
type UsersOutput struct { Users []User `json:"users"` ListMetadata }
Click to show internal directories.
Click to hide internal directories.