importer

package
v0.16.1 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Access

type Access struct {
	Id         string     `yaml:"id" json:"id"`
	NamingHint string     `yaml:"namingHint" json:"namingHint"`
	Who        WhoItem    `yaml:"who" json:"who"`
	What       []WhatItem `yaml:"what" json:"what"`
}

type AccessProvider

type AccessProvider struct {
	Id          string    `yaml:"id" json:"id"`
	Name        string    `yaml:"name" json:"name"`
	Description string    `yaml:"description" json:"description"`
	NamingHint  string    `yaml:"namingHint" json:"namingHint"`
	Access      []*Access `yaml:"access" json:"access"`
	Action      Action    `yaml:"action" json:"action"`
	Delete      bool      `yaml:"delete" json:"delete"`
}

type AccessProviderImport

type AccessProviderImport struct {
	LastCalculated  int64            `yaml:"lastCalculated" json:"lastCalculated"`
	AccessProviders []AccessProvider `yaml:"accessProviders" json:"accessProviders"`
}

func ParseAccessProviderImportFile

func ParseAccessProviderImportFile(config *access_provider.AccessSyncConfig) (*AccessProviderImport, error)

type Action

type Action int
const (
	Promise Action = iota
	Grant
	Deny
	Mask
	Filtered
)

func (*Action) MarshalJSON

func (a *Action) MarshalJSON() ([]byte, error)

func (*Action) MarshalYAML

func (a *Action) MarshalYAML() (interface{}, error)

func (*Action) UnmarshalJSON

func (a *Action) UnmarshalJSON(b []byte) error

func (*Action) UnmarshalYAML

func (a *Action) UnmarshalYAML(unmarshal func(interface{}) error) error

type WhatItem

type WhatItem struct {
	DataObject  *data_source.DataObjectReference `yaml:"dataObject" json:"dataObject"`
	Permissions []string                         `yaml:"permissions" json:"permissions"`
}

type WhoItem

type WhoItem struct {
	Users                  []string `yaml:"users" json:"users"`
	Groups                 []string `yaml:"groups" json:"groups"`
	AccessProviders        []string `yaml:"accessProviders" json:"accessProviders"`
	UsersInGroups          []string `yaml:"usersInGroups" json:"usersInGroups"`
	UsersInAccessProviders []string `yaml:"usersInAccessProviders" json:"usersInAccessProviders"`
}

Jump to

Keyboard shortcuts

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