gitea

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GitHookUser    string = "user"
	GitHookRepo    string = "repo"
	GitHookName    string = "name"
	GitHookContent string = "content"
)
View Source
const (
	PublicKeyUser         string = "username"
	PublicKey             string = "key"
	PublicKeyReadOnlyFlag string = "read_only"
	PublicKeyTitle        string = "title"
	PublicKeyId           string = "id"
	PublicKeyFingerprint  string = "fingerprint"
	PublicKeyCreated      string = "created"
	PublicKeyType         string = "type"
)
View Source
const (
	TeamName                string = "name"
	TeamOrg                 string = "organisation"
	TeamDescription         string = "description"
	TeamPermissions         string = "permission"
	TeamCreateRepoFlag      string = "can_create_repos"
	TeamIncludeAllReposFlag string = "include_all_repositories"
	TeamUnits               string = "units"
	TeamMembers             string = "members"
	TeamRepositories        string = "repositories"
)
View Source
const (
	TokenUsername  string = "username"
	TokenName      string = "name"
	TokenHash      string = "token"
	TokenLastEight string = "last_eight"
)
View Source
const (
	RepoAdminChangeTeamAccess string = "repo_admin_change_team_access"
)

Variables

This section is empty.

Functions

func CollapseStringList

func CollapseStringList(strlist []string) []interface{}

func ExpandStringList

func ExpandStringList(configured []interface{}) []string

func Provider

func Provider() *schema.Provider

Provider returns a terraform.ResourceProvider.

Types

type Config

type Config struct {
	Token      string
	Username   string
	Password   string
	BaseURL    string
	Insecure   bool
	CACertFile string
}

Config is per-provider, specifies where to connect to gitea

func (*Config) Client

func (c *Config) Client() (interface{}, error)

Client returns a *gitea.Client to interact with the configured gitea instance

Jump to

Keyboard shortcuts

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