sync_to_target

package
v0.48.0 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2023 License: Apache-2.0 Imports: 11 Imported by: 8

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"`
	ActualName *string    `yaml:"actualName" json:"actualName"`
	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"`
	Type        *string `yaml:"type" json:"type"`

	ExternalId *string `yaml:"externalId" json:"externalId"`

	// Deprecated: use ActualName and What fields directory
	Access []*Access `yaml:"access" json:"access"`

	Action     Action   `yaml:"action" json:"action"`
	Who        WhoItem  `yaml:"who" json:"who"`
	DeletedWho *WhoItem `yaml:"deletedWho" json:"deletedWho"`
	Delete     bool     `yaml:"delete" json:"delete"`
	WhoLocked  *bool    `yaml:"whoLocked" json:"whoLocked"`
	WhatLocked *bool    `yaml:"whatLocked" json:"whatLocked"`

	ActualName *string    `yaml:"actualName" json:"actualName"`
	What       []WhatItem `yaml:"what" json:"what"`
	DeleteWhat []WhatItem `yaml:"deleteWhat" json:"deleteWhat"`
}

type AccessProviderImport

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

func ParseAccessProviderImportFile

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

type AccessProviderImportFileParser added in v0.23.6

type AccessProviderImportFileParser interface {
	ParseAccessProviders() (*AccessProviderImport, error)
}

func NewAccessProviderFileParser added in v0.23.6

func NewAccessProviderFileParser(config *access_provider.AccessSyncToTarget) (AccessProviderImportFileParser, error)

type AccessSyncFeedbackInformation

type AccessSyncFeedbackInformation struct {
	AccessId   string  `yaml:"accessId" json:"accessId"`
	ActualName string  `yaml:"actualName" json:"actualName"`
	ExternalId *string `yaml:"externalId" json:"externalId"`
}

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 SyncFeedbackFileCreator

type SyncFeedbackFileCreator interface {
	AddAccessProviderFeedback(accessProviderId string, accessFeedback ...AccessSyncFeedbackInformation) error
	Close()
	GetAccessProviderCount() int
}

func NewFeedbackFileCreator

func NewFeedbackFileCreator(config *access_provider.AccessSyncToTarget) (SyncFeedbackFileCreator, error)

NewFeedbackFileCreator creates a new SyncFeedbackFileCreator based on the configuration coming from the Raito CLI.

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 contains all account names directly assigned to this access provider
	Users []string `yaml:"users,omitempty" json:"users,omitempty"`

	// Groups contains all group names assigned to this access provider
	Groups []string `yaml:"groups,omitempty" json:"groups,omitempty"`

	// InheritFrom contains all access providers actual names in WHO part of this access provider
	InheritFrom []string `yaml:"inheritFrom,omitempty" json:"inheritFrom,omitempty"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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