github

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 22, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Enterprise string
	Token      string
	DryRun     bool
}

type GitHub

type GitHub struct {
	// contains filtered or unexported fields
}

func New

func New(ctx context.Context, config Config) (*GitHub, error)

func (GitHub) DeleteUser

func (g GitHub) DeleteUser(ctx context.Context, userId string) error

func (GitHub) DryRun

func (g GitHub) DryRun() bool

func (GitHub) EnterpriseId added in v1.0.0

func (g GitHub) EnterpriseId() string

func (*GitHub) Users

func (g *GitHub) Users(ctx context.Context) ([]GitHubUser, error)

type GitHubUser

type GitHubUser struct {
	ID    string
	Login string
	Email string
}

type GitHubUsers

type GitHubUsers []GitHubUser

Jump to

Keyboard shortcuts

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