github

package
v0.0.0-...-f915117 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

pkg/github/github.go

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 represents a GitHub client

func NewClient

func NewClient(token string) (*Client, error)

NewClient creates a new GitHub client with the provided token

func (*Client) AddDeployKey

func (c *Client) AddDeployKey(repo, title, key string, readOnly bool) error

AddDeployKey adds a deploy key to the specified repository

func (*Client) Authenticate

func (c *Client) Authenticate() error

Authenticate verifies the GitHub token by fetching the authenticated user

Jump to

Keyboard shortcuts

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