gitea

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: May 24, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package gitea deals with using gitea as a store for pushed applications and their deployment info

Index

Constants

View Source
const (
	GiteaCredentialsSecret = "gitea-creds"
)
View Source
const LocalRegistry = "127.0.0.1:30500/apps"

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Client *giteaSDK.Client
	Auth   auth.PasswordAuth
}

Client provides functionality for talking to a Gitea installation on Kubernetes

func New

func New() (*Client, error)

New loads the config and returns a new gitea client

func (*Client) CreateOrg

func (c *Client) CreateOrg(org string) error

func (*Client) DeleteOrg added in v0.0.13

func (c *Client) DeleteOrg(org string) error

func (*Client) DeleteRepo

func (c *Client) DeleteRepo(org, repo string) error

func (*Client) Upload added in v0.0.13

func (c *Client) Upload(app *models.App, tmpDir string) error

Upload puts the app data into the gitea repo and creates the webhook and accompanying app data. The results are added to the struct App.

Jump to

Keyboard shortcuts

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