diff

package
v0.0.15 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package diff is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Changes

type Changes struct {
	Objects   []string
	Relations map[string][]string
}

type Diff

type Diff struct {
	Added   Changes
	Removed Changes
}

func (*Diff) Validate

func (d *Diff) Validate(dv Instances) error

type Instances

type Instances interface {
	ObjectTypes() ([]string, error)
	RelationTypes() ([]*RelationKind, error)
}

type MockInstances

type MockInstances struct {
	// contains filtered or unexported fields
}

MockInstances is a mock of Instances interface

func NewMockInstances

func NewMockInstances(ctrl *gomock.Controller) *MockInstances

NewMockInstances creates a new mock instance

func (*MockInstances) EXPECT

EXPECT returns an object that allows the caller to indicate expected use

func (*MockInstances) ObjectTypes

func (m *MockInstances) ObjectTypes() ([]string, error)

ObjectTypes mocks base method

func (*MockInstances) RelationTypes

func (m *MockInstances) RelationTypes() ([]*RelationKind, error)

RelationTypes mocks base method

type MockInstancesMockRecorder

type MockInstancesMockRecorder struct {
	// contains filtered or unexported fields
}

MockInstancesMockRecorder is the mock recorder for MockInstances

func (*MockInstancesMockRecorder) ObjectTypes

func (mr *MockInstancesMockRecorder) ObjectTypes() *gomock.Call

ObjectTypes indicates an expected call of ObjectTypes

func (*MockInstancesMockRecorder) RelationTypes

func (mr *MockInstancesMockRecorder) RelationTypes() *gomock.Call

RelationTypes indicates an expected call of RelationTypes

type RelationKind

type RelationKind struct {
	Object          string
	Relation        string
	Subject         string
	SubjectRelation string
}

Only the types of the relation instances are needed.

Jump to

Keyboard shortcuts

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