auth

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2026 License: MIT Imports: 24 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package auth implements the cpfs auth command and owns its lifecycle.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthServer

type AuthServer struct {
	Identity           cluster.Config
	StatePath          string
	AuthorityDirectory string
	Host               string
	Port               int
	Advertise          string
	Gateway            string
	MeshKey            string
}

AuthServer assembles an independent, weighted-consensus Auth service. Its physical replica identity and election terms do not change STS generations.

func (*AuthServer) Run

func (s *AuthServer) Run(ctx context.Context) (result error)

type Command

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

Command owns the cpfs auth command and its component lifetimes.

func New

func New(gateway conf.GatewayOptions) *Command

New constructs the command with the selected global gateway options.

func (*Command) Help

func (*Command) Help() string

func (*Command) Init

func (c *Command) Init(args ...string) error

func (*Command) Name

func (*Command) Name() string

func (*Command) Run

func (c *Command) Run(...string) error

Jump to

Keyboard shortcuts

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