vaults_api

package
v1.0.13 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2026 License: AGPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type VaultsImpl

type VaultsImpl struct {
	pb.UnimplementedVaultsAPIServer
	// contains filtered or unexported fields
}

func NewVaultsImpl

func NewVaultsImpl(
	vaultSvc service.VaultService, workbenchSvc service.WorkbenchService, cookieSecure bool,
) *VaultsImpl

func (*VaultsImpl) AcceptInvite

func (v *VaultsImpl) AcceptInvite(
	ctx context.Context,
	req *pb.AcceptInvite_Request,
) (*pb.AcceptInvite_Response, error)

func (*VaultsImpl) AddMember

func (*VaultsImpl) CreateVault

func (*VaultsImpl) CreateWorkbench

func (*VaultsImpl) DeleteVault

func (*VaultsImpl) Gateway

func (v *VaultsImpl) Gateway(ctx context.Context, endpoint string, opts ...grpc.DialOption) (string, http.Handler)

func (*VaultsImpl) GetVault

func (*VaultsImpl) LinkS3Bucket

func (v *VaultsImpl) LinkS3Bucket(
	ctx context.Context,
	req *pb.LinkS3Bucket_Request,
) (*pb.LinkS3Bucket_Response, error)

func (*VaultsImpl) ListMembers

func (*VaultsImpl) ListVaults

func (*VaultsImpl) PublishVault

func (*VaultsImpl) Register

func (v *VaultsImpl) Register(srv grpc.ServiceRegistrar)

func (*VaultsImpl) RemoveMember

func (v *VaultsImpl) RemoveMember(
	ctx context.Context,
	req *pb.RemoveMember_Request,
) (*pb.RemoveMember_Response, error)

func (*VaultsImpl) SetVaultBinaryStorage

func (*VaultsImpl) StartWorkbench

func (v *VaultsImpl) StartWorkbench(
	ctx context.Context, req *pb.StartWorkbench_Request,
) (*pb.StartWorkbench_Response, error)

func (*VaultsImpl) StopWorkbench

func (v *VaultsImpl) StopWorkbench(
	ctx context.Context, req *pb.StopWorkbench_Request,
) (*pb.StopWorkbench_Response, error)

func (*VaultsImpl) SubmitWorkbenchLoginCode

SubmitWorkbenchLoginCode relays the user's pasted OAuth code (or, on a brand-new container, their first theme/login-menu keystroke) into a workbench's tmux session — see docs/workbench/03_auth_and_login_flow.md, "Mechanism (confirmed)", step 4.

func (*VaultsImpl) UnlinkS3Bucket

func (v *VaultsImpl) UnlinkS3Bucket(
	ctx context.Context,
	req *pb.UnlinkS3Bucket_Request,
) (*pb.UnlinkS3Bucket_Response, error)

func (*VaultsImpl) UnpublishVault

func (*VaultsImpl) WatchWorkbenchLogin

func (v *VaultsImpl) WatchWorkbenchLogin(
	req *pb.WatchWorkbenchLogin_Request, stream pb.VaultsAPI_WatchWorkbenchLoginServer,
) error

WatchWorkbenchLogin streams periodic snapshots of a workbench's subscription_login TUI flow (docs/workbench/03_auth_and_login_flow.md) until it reaches domain.WorkbenchLoginStateAuthorized or the client disconnects. A thin polling wrapper around WorkbenchService.GetLoginPrompt, modeled directly on TractsImpl.WatchRun (internal/transport/tracts_api/watch_run.go) — tmux capture-pane is cheap, so the same poll interval is reused rather than inventing a new one.

Jump to

Keyboard shortcuts

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