sensitive

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GetGroupRequest

type GetGroupRequest struct {
	ID string
}

type GroupResponse

type GroupResponse struct {
	ID   string
	Name string
}

type RenameGroupRequest

type RenameGroupRequest struct {
	ID   string
	Name string
}

type SecretService

type SecretService interface {
	// GetGroup looks up a group given its unique id.
	//
	// GET    /group/{ID}
	// ROLES  admin.read, group.{ID}.read
	GetGroup(context.Context, *GetGroupRequest) (*GroupResponse, error)

	// RenameGroup changes an existing group's name.
	//
	// PUT    /group/{ID}/name
	// ROLES  admin.write, group.{ID}.write
	RenameGroup(context.Context, *RenameGroupRequest) (*GroupResponse, error)
}

SecretService contains some contrived operations to show you how to lock down your endpoints using the Authorization metadata helpers and the ROLES doc option.

type SecretServiceHandler

type SecretServiceHandler struct{}

func (*SecretServiceHandler) GetGroup

func (*SecretServiceHandler) RenameGroup

Directories

Path Synopsis
Code generated by Frodo - DO NOT EDIT.
Code generated by Frodo - DO NOT EDIT.

Jump to

Keyboard shortcuts

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