repositorypermission

package
v0.8.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	*up.Config
}

func NewClient

func NewClient(cfg *up.Config) *Client

func (*Client) Create

func (c *Client) Create(ctx context.Context, params *CreateParameters) error

func (*Client) Delete

func (c *Client) Delete(ctx context.Context, params *GetParameters) error

func (*Client) Get

func (c *Client) Get(ctx context.Context, params *GetParameters) error

type CreateParameters

type CreateParameters struct {
	Repository   string `json:"repository"`
	Organization string `json:"organization"`
	TeamID       string `json:"TeamId"`
	Permission   string `json:"permission"`
}

type GetParameters

type GetParameters struct {
	Repository   string `json:"repository"`
	Organization string `json:"organization"`
	TeamID       string `json:"TeamId"`
}

type SetPermission

type SetPermission struct {
	Permission string `json:"permission"`
}

Jump to

Keyboard shortcuts

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