api

package
v0.0.0-...-56de86b Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2023 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Migrate

func Migrate(migrationsDir string, conf *config.Config, logger *logrus.Logger)

func Run

func Run(conf *config.Config, logger *logrus.Logger)

Types

type Api

type Api struct {
	// contains filtered or unexported fields
}

func (*Api) Authority

func (c *Api) Authority(w http.ResponseWriter, r *http.Request)

func (*Api) CreateGitHubClient

func (c *Api) CreateGitHubClient() *githubv4.Client

func (*Api) Enroll

func (c *Api) Enroll(w http.ResponseWriter, r *http.Request)

func (*Api) EnrollHost

func (c *Api) EnrollHost(hostname string, r *http.Request) (string, error)

func (*Api) EnrollUser

func (c *Api) EnrollUser(w http.ResponseWriter, r *http.Request)

func (*Api) GetKnownHosts

func (c *Api) GetKnownHosts() (string, error)

func (*Api) KnownHosts

func (c *Api) KnownHosts(w http.ResponseWriter, r *http.Request)

func (*Api) RetrieveGitHubUsername

func (c *Api) RetrieveGitHubUsername(ssoIdentity string) (string, error)

func (*Api) StartGitHubUserMappingSyncJob

func (c *Api) StartGitHubUserMappingSyncJob() error

func (*Api) Status

func (c *Api) Status(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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