gitea

package
v0.0.0-...-7977c27 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const CreateRepoScript = `` /* 455-byte string literal not displayed */

CreateRepoScript is the script for creating a gitea repo

View Source
const DeleteAppScript = `` /* 263-byte string literal not displayed */

DeleteAppScript deletes all traces of an app

View Source
const DroneTokenScript = `` /* 818-byte string literal not displayed */

DroneTokenScript is used to grab a drone token

View Source
const EnableDroneScript = `` /* 532-byte string literal not displayed */

EnableDroneScript enables drone for a gitea repo

View Source
const PrepareCodeScript = `` /* 1209-byte string literal not displayed */

PrepareCodeScript generates support files for pushing an app

View Source
const PushScript = `` /* 388-byte string literal not displayed */

PushScript is the script we execute when pushing an app to gitea

View Source
const StagingStatusScript = `` /* 244-byte string literal not displayed */

StagingStatusScript returns a status for the app

Variables

This section is empty.

Functions

func CreateRepo

func CreateRepo(info PushInfo) error

CreateRepo creates a repo

func Delete

func Delete(info PushInfo) error

Delete deletes an app

func Push

func Push(info PushInfo) error

Push pushes app code to gitea

func StagingStatus

func StagingStatus(info PushInfo) (string, error)

StagingStatus returns the staging status of an app

Types

type PushInfo

type PushInfo struct {
	Target        string
	Username      string
	Password      string
	AppName       string
	DroneToken    string
	AppDir        string
	ImageUser     string
	ImagePassword string
}

PushInfo contains info required to push an app

Jump to

Keyboard shortcuts

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