activedirectory

package
v0.0.0-...-bda3574 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCurrentHash

func GetCurrentHash() string

func ManifestGETHandler

func ManifestGETHandler(w http.ResponseWriter, r *http.Request)

func ManifestPOSTHandler

func ManifestPOSTHandler(w http.ResponseWriter, r *http.Request)

func SaveManifest

func SaveManifest(manifest AssociationManifest) error

func SetCurrentHash

func SetCurrentHash(h string) error

Types

type AssociationManifest

type AssociationManifest struct {
	Projects []Project `json:"projects"`
	Users    []User    `json:"users"`
}

type Project

type Project struct {
	Name   string   `json:"name"`
	Users  []string `json:"users"`
	Admins []string `json:"admins"`
	Owner  string   `json:"owner"`
}

type User

type User struct {
	Username  string `json:"username"`
	Firstname string `json:"firstname"`
	Lastname  string `json:"lastname"`
}

Jump to

Keyboard shortcuts

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