serviceauth

package
v1.6.2 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package serviceauth defines optional service credential permissions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Allows

func Allows(policies map[string]Policy, key, action string) bool

Allows reports whether a key has a specific operation. Unknown keys deny.

func Parse

func Parse(raw string, keys map[string]string) (map[string]Policy, error)

Parse accepts a complete policy map. An empty setting retains legacy access.

Types

type Policy

type Policy struct {
	Actions []string `json:"actions"`
}

Policy restricts an authenticated HMAC key to named operations.

Jump to

Keyboard shortcuts

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