Versions in this module Expand all Collapse all v0 v0.1.0 Apr 19, 2023 Changes in this version + var ContextAPIKey = contextKey("apikey") + var ContextAccessToken = contextKey("accesstoken") + var ContextBasicAuth = contextKey("basic") + var ContextOAuth2 = contextKey("token") + func CacheExpires(r *http.Response) time.Time + type APIClient struct + ClustersApi *ClustersApiService + ReposApi *ReposApiService + RolesApi *RolesApiService + SessionsApi *SessionsApiService + UsersApi *UsersApiService + func NewAPIClient(cfg *Configuration) *APIClient + func (c *APIClient) ChangeBasePath(path string) + type APIKey struct + Key string + Prefix string + type APIResponse struct + Message string + Method string + Operation string + Payload []byte + RequestURL string + func NewAPIResponse(r *http.Response) *APIResponse + func NewAPIResponseWithError(errorMessage string) *APIResponse + type BasicAuth struct + Password string + UserName string + type ClustersApiService service + func (a *ClustersApiService) CreateCluster(ctx context.Context, request model.InternalV1Cluster) (model.InternalV1Cluster, *http.Response, error) + func (a *ClustersApiService) CreateClusterMember(ctx context.Context, cluster string, request model.ClusterMember) (model.ClusterMember, *http.Response, error) + func (a *ClustersApiService) CreateClusterRepos(ctx context.Context, cluster string, request model.CreateClusterRepoReq) (model.CreateClusterRepoReq, *http.Response, error) + func (a *ClustersApiService) CreateClusterRole(ctx context.Context, cluster string, request model.V1ClusterRole) (model.V1ClusterRole, *http.Response, error) + func (a *ClustersApiService) DeleteCluster(ctx context.Context, name string) (model.V1Cluster, *http.Response, error) + func (a *ClustersApiService) DeleteClusterMember(ctx context.Context, cluster string, member string) (float32, *http.Response, error) + func (a *ClustersApiService) DeleteClusterRepo(ctx context.Context, cluster string, repo string) (float32, *http.Response, error) + func (a *ClustersApiService) DeleteClusterRole(ctx context.Context, cluster string, clusterrole string) (float32, *http.Response, error) + func (a *ClustersApiService) GetCluster(ctx context.Context, name string) (model.V1Cluster, *http.Response, error) + func (a *ClustersApiService) GetClusterMember(ctx context.Context, cluster string, member string) (model.ClusterMember, *http.Response, error) + func (a *ClustersApiService) GetClusterMembers(ctx context.Context, cluster string) ([]model.ClusterMember, *http.Response, error) + func (a *ClustersApiService) GetClusterRepos(ctx context.Context, cluster string) ([]model.KubepiRepo, *http.Response, error) + func (a *ClustersApiService) GetClusterRoles(ctx context.Context, cluster string) ([]model.V1ClusterRole, *http.Response, error) + func (a *ClustersApiService) GetClusters(ctx context.Context) ([]model.V1Cluster, *http.Response, error) + func (a *ClustersApiService) UpdateCluster(ctx context.Context, request model.ClusterUpdateReq, name string) (model.ClusterUpdateReq, *http.Response, error) + func (a *ClustersApiService) UpdateClusterMember(ctx context.Context, cluster string, member string, ...) (model.ClusterMember, *http.Response, error) + func (a *ClustersApiService) UpdateClusterRole(ctx context.Context, cluster string, clusterrole string, ...) (model.V1ClusterRole, *http.Response, error) + type Configuration struct + BasePath string + DefaultHeader map[string]string + HTTPClient *http.Client + Host string + Scheme string + UserAgent string + func NewConfiguration() *Configuration + func (c *Configuration) AddDefaultHeader(key string, value string) + type GenericSwaggerError struct + func (e GenericSwaggerError) Body() []byte + func (e GenericSwaggerError) Error() string + func (e GenericSwaggerError) Model() interface{} + type ReposApiService service + func (a *ReposApiService) ImagereposClusterClusterGet(ctx context.Context, cluster string) ([]ImagerepoImageRepo, *http.Response, error) + func (a *ReposApiService) ImagereposClusterRepoPut(ctx context.Context, cluster string, repo string) ([]string, *http.Response, error) + func (a *ReposApiService) ImagereposNameDelete(ctx context.Context, name string) (ImagerepoImageRepo, *http.Response, error) + func (a *ReposApiService) ImagereposNameGet(ctx context.Context, name string) (ImagerepoImageRepo, *http.Response, error) + func (a *ReposApiService) ImagereposNamePut(ctx context.Context, request ImagerepoRepoConfig, name string) (ImagerepoImageRepo, *http.Response, error) + func (a *ReposApiService) ImagereposPost(ctx context.Context, request ImagerepoRepoConfig) (ImagerepoRepoConfig, *http.Response, error) + func (a *ReposApiService) ImagereposRepoSearchGet(ctx context.Context, repo string) (ImagerepoRepoResponse, *http.Response, error) + func (a *ReposApiService) ImagereposRepositoriesSearchPost(ctx context.Context, request ImagerepoRepoConfig) ([]string, *http.Response, error) + type RolesApiService service + func (a *RolesApiService) CreateRole(ctx context.Context, request model.KubepiRole) (model.KubepiRole, *http.Response, error) + func (a *RolesApiService) DeleteRole(ctx context.Context, name string) (model.KubepiRole, *http.Response, error) + func (a *RolesApiService) GetRole(ctx context.Context, name string) (model.KubepiRole, *http.Response, error) + func (a *RolesApiService) GetRoles(ctx context.Context) ([]model.KubepiRole, *http.Response, error) + func (a *RolesApiService) UpdateRole(ctx context.Context, name string) (model.KubepiRole, *http.Response, error) + type SessionsApiService service + func (a *SessionsApiService) Login(ctx context.Context, request model.LoginCredential) (*http.Response, error) + type UsersApiService service + func (a *UsersApiService) CreateUser(ctx context.Context, request model.KubepiUserCreateReq) (model.KubepiUser, *http.Response, error) + func (a *UsersApiService) DeleteUser(ctx context.Context, name string) (model.KubepiUser, *http.Response, error) + func (a *UsersApiService) GetUser(ctx context.Context, name string) (model.KubepiUser, *http.Response, error) + func (a *UsersApiService) GetUsers(ctx context.Context) ([]model.KubepiUser, *http.Response, error) + func (a *UsersApiService) SearchUsers(ctx context.Context) (model.ApiPage, *http.Response, error) + func (a *UsersApiService) UpdateUser(ctx context.Context, name string) (model.KubepiUser, *http.Response, error)