models

package module
v0.0.0-...-06916ea Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2024 License: Apache-2.0 Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Alias

type Alias struct {
	ID        string `json:"id,omitempty"`
	Name      string `json:"name,omitempty"`
	MountPath string `json:"mountPath,omitempty"`
	MountType string `json:"mountType,omitempty"`
}

type AuthMount

type AuthMount struct {
	Path   string     `json:"path,omitempty"`
	Type   string     `json:"type,omitempty"`
	Roles  []AuthRole `json:"authRoles,omitempty"`
	Users  []string   `json:"users,omitempty"`
	Groups []string   `json:"groups,omitempty"`
	Certs  []AuthRole `json:"certs,omitempty"`
}

type AuthRole

type AuthRole struct {
	Name     string   `json:"name,omitempty"`
	Policies []string `json:"policies,omitempty"`
}

type Entity

type Entity struct {
	ID       string   `json:"id,omitempty"`
	Name     string   `json:"name,omitempty"`
	Policies []string `json:"policies,omitempty"`
	Aliases  []Alias  `json:"aliases,omitempty"`
}

type NamespaceInventory

type NamespaceInventory struct {
	Name           string          `json:"name,omitempty"`
	AuthMounts     []AuthMount     `json:"authMounts,omitempty"`
	SecretsEngines []SecretsEngine `json:"secretsEngines,omitempty"`
	Entities       []Entity        `json:"entities,omitempty"`
	Policies       []Policy        `json:"policies,omitempty"`
	Errors         []string        `json:"errors,omitempty"`
	Usage          UsageData       `json:"usage,omitempty"`
}

type Policy

type Policy struct {
	Name  string   `json:"name,omitempty"`
	Paths []string `json:"paths,omitempty"`
}

type SecretsEngine

type SecretsEngine struct {
	Path      string   `json:"path,omitempty"`
	Type      string   `json:"type,omitempty"`
	Roles     []string `json:"roles,omitempty"`
	Version   string   `json:"version,omitempty"`
	Secrets   []string `json:"secrets,omitempty"`
	ItemCount int      `json:"itemCount,omitempty"`
}

type UsageData

type UsageData struct {
	DistinctEntities json.Number `json:"distinctEntities,omitempty"`
	Clients          json.Number `json:"clients,omitempty"`
	NonEntityClients json.Number `json:"nonEntityClients,omitempty"`
	SecretSyncs      json.Number `json:"secretSyncs,omitempty"`
	AcmeClients      json.Number `json:"acmeClients,omitempty"`
}

type VaultInventory

type VaultInventory struct {
	Namespaces []NamespaceInventory `json:"namespaces,omitempty"`
	Usage      UsageData            `json:"usage,omitempty"`
	Errors     []string             `json:"errors,omitempty"`
}

func (*VaultInventory) AddNamespace

func (v *VaultInventory) AddNamespace(ns NamespaceInventory)

Jump to

Keyboard shortcuts

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