gitserver

package
v0.0.0-...-47c0216 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 19, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

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

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

func (c *Client) CreateGitServer(ctx context.Context, item types.Server) (types.Server, error)

CreateGitServer creates a Git server resource.

func (*Client) DeleteAllGitServers

func (c *Client) DeleteAllGitServers(ctx context.Context) error

DeleteAllGitServers removes all Git server resources.

func (*Client) DeleteGitServer

func (c *Client) DeleteGitServer(ctx context.Context, name string) error

DeleteGitServer removes the specified Git server resource.

func (*Client) GetGitServer

func (c *Client) GetGitServer(ctx context.Context, name string) (types.Server, error)

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

func (c *Client) UpdateGitServer(ctx context.Context, item types.Server) (types.Server, error)

UpdateGitServer updates a Git server resource.

func (*Client) UpsertGitServer

func (c *Client) UpsertGitServer(ctx context.Context, item types.Server) (types.Server, error)

UpsertGitServer updates a Git server resource, creating it if it doesn't exist.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL