Documentation ¶
Overview ¶
Copyright 2024 Gravitational, Inc.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
- type Client
- func (c *Client) CreateGitHubAuthRequest(ctx context.Context, req *types.GithubAuthRequest, org string) (*types.GithubAuthRequest, error)
- func (c *Client) CreateGitServer(ctx context.Context, item types.Server) (types.Server, error)
- func (c *Client) DeleteAllGitServers(ctx context.Context) error
- func (c *Client) DeleteGitServer(ctx context.Context, name string) error
- func (c *Client) GetGitServer(ctx context.Context, name string) (types.Server, error)
- func (c *Client) ListGitServers(ctx context.Context, pageSize int, pageToken string) ([]types.Server, string, error)
- func (c *Client) UpdateGitServer(ctx context.Context, item types.Server) (types.Server, error)
- func (c *Client) UpsertGitServer(ctx context.Context, item types.Server) (types.Server, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is an Git servers client.
func NewClient ¶
func NewClient(grpcClient gitserverv1.GitServerServiceClient) *Client
NewClient creates a new Git servers client.
func (*Client) CreateGitHubAuthRequest ¶
func (c *Client) CreateGitHubAuthRequest(ctx context.Context, req *types.GithubAuthRequest, org string) (*types.GithubAuthRequest, error)
CreateGitHubAuthRequest starts GitHub OAuth flow for authenticated user.
func (*Client) CreateGitServer ¶
CreateGitServer creates a Git server resource.
func (*Client) DeleteAllGitServers ¶
DeleteAllGitServers removes all Git server resources.
func (*Client) DeleteGitServer ¶
DeleteGitServer removes the specified Git server resource.
func (*Client) GetGitServer ¶
GetGitServer returns Git servers by name.
func (*Client) ListGitServers ¶
func (c *Client) ListGitServers(ctx context.Context, pageSize int, pageToken string) ([]types.Server, string, error)
ListGitServers returns all Git servers matching filter.
func (*Client) UpdateGitServer ¶
UpdateGitServer updates a Git server resource.