loginsessions

package
v0.0.0-...-a70aae3 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2024 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Overview

Package loginsessions implements Login Sessions backend that is used to perform interactive logins in LUCI CLI tools.

Index

Constants

This section is empty.

Variables

View Source
var ModuleName = module.RegisterName("go.chromium.org/luci/server/loginsessions")

ModuleName can be used to refer to this module when declaring dependencies.

Functions

func NewModule

func NewModule(opts *ModuleOptions) module.Module

NewModule returns a server module that implements login sessions backend.

func NewModuleFromFlags

func NewModuleFromFlags() module.Module

NewModuleFromFlags is a variant of NewModule that initializes options through command line flags.

Calling this function registers flags in flag.CommandLine. They are usually parsed in server.Main(...).

Types

type ModuleOptions

type ModuleOptions struct {
	// RootURL is the root URL of the login session server to use in links.
	//
	// E.g. "https://<publicly routable domain name>".
	//
	// Required for production mode.
	RootURL string
}

ModuleOptions contain configuration of the login sessions server module.

func (*ModuleOptions) Register

func (o *ModuleOptions) Register(f *flag.FlagSet)

Register registers the command line flags.

Directories

Path Synopsis
Package internal contains implementation details of loginsessions module.
Package internal contains implementation details of loginsessions module.
assets
Package assets is generated by go.chromium.org/luci/tools/cmd/assets.
Package assets is generated by go.chromium.org/luci/tools/cmd/assets.
statepb
Package statepb contains protos used internally by loginsessions.
Package statepb contains protos used internally by loginsessions.

Jump to

Keyboard shortcuts

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