Documentation ¶
Index ¶
- type ContainerPackage
- type GithubClient
- func (gh *GithubClient) DeleteContainerPackageVersion(ctx context.Context, container string, pkg *github.PackageVersion, dryRun bool)
- func (gh *GithubClient) GetAllContainerPackages(ctx context.Context, username string) ([]*github.Package, error)
- func (gh *GithubClient) GetAllContainerPackagesVersions(ctx context.Context, container string) ([]*github.PackageVersion, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContainerPackage ¶
type ContainerPackage struct { ID int Index int Name string Owner string Visibility string CreatedAt time.Time }
func (ContainerPackage) PrintTable ¶
func (cp ContainerPackage) PrintTable()
type GithubClient ¶
type GithubClient struct {
// contains filtered or unexported fields
}
GithubClient é um cliente para o GitHub.
func NewClient ¶
func NewClient(ctx context.Context, token, username, url string) (*GithubClient, error)
NewClient retorna uma nova instância de GithubClient e um erro, se houver.
func (*GithubClient) DeleteContainerPackageVersion ¶
func (gh *GithubClient) DeleteContainerPackageVersion(ctx context.Context, container string, pkg *github.PackageVersion, dryRun bool)
Delete container package version
func (*GithubClient) GetAllContainerPackages ¶
func (gh *GithubClient) GetAllContainerPackages(ctx context.Context, username string) ([]*github.Package, error)
Get all packages of user
func (*GithubClient) GetAllContainerPackagesVersions ¶
func (gh *GithubClient) GetAllContainerPackagesVersions(ctx context.Context, container string) ([]*github.PackageVersion, error)
Get all container package versions off a user
Click to show internal directories.
Click to hide internal directories.