sites

package
v0.5.11 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LoginType added in v0.3.7

type LoginType string
const (
	None    LoginType = ""
	Jenkins LoginType = "jenkins"
	Github  LoginType = "github"
)

type Site

type Site struct {
	Name      string             `json:"name"`
	Url       url.URL            `json:"url"`
	LoginType LoginType          `json:"jenkins"`
	Username  string             `json:"username"`
	Password  log.RedactedString `json:"password"`
}

func (Site) Id

func (s Site) Id() (out string)

type Sites

type Sites interface {
	Set(Site) error
	Range(func(data Site) error)
	Get(string) (Site, error)
}

func Init

func Init(st stream.Stream, ctx context.Context) (s Sites, err error)

Jump to

Keyboard shortcuts

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