sync_to_target

package
v0.68.6 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: Apache-2.0 Imports: 12 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"`

	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"`
	InheritanceLocked *bool    `yaml:"inheritanceLocked" json:"inheritanceLocked"`
	WhatLocked        *bool    `yaml:"whatLocked" json:"whatLocked"`
	DeleteLocked      *bool    `yaml:"deleteLocked" json:"deleteLocked"`

	// Row level filter properties
	PolicyRule     *string                               `yaml:"policyRule,omitempty" json:"policyRule,omitempty"`
	FilterCriteria *bexpression.DataComparisonExpression `yaml:"filterCriteria,omitempty" json:"filterCriteria,omitempty"`

	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 AccessProviderSyncFeedback added in v0.52.0

type AccessProviderSyncFeedback struct {
	AccessProvider string   `yaml:"accessProvider" json:"accessProvider"`
	ActualName     string   `yaml:"actualName" json:"actualName"`
	ExternalId     *string  `yaml:"externalId" json:"externalId"`
	Type           *string  `yaml:"type" json:"type"`
	Errors         []string `yaml:"errors" json:"errors"`
	Warnings       []string `yaml:"warnings" json:"warnings"`
}

type Action

type Action int
const (
	Promise Action = iota // Deprecated promises are set on who item
	Grant
	Deny
	Mask
	Filtered
	Purpose
)

func (*Action) MarshalJSON

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

func (*Action) MarshalYAML

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

func (*Action) String added in v0.56.1

func (a *Action) String() string

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(accessProviderFeedback AccessProviderSyncFeedback) 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