data

package
v0.12.1 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2021 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GenericSync

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

GenericSync replicates Kubernetes resources into OPA as raw JSON.

func New

func New(kubeconfig *rest.Config, opa opa_client.Data, ns types.ResourceType) *GenericSync

New returns a new GenericSync that cna be started.

func (*GenericSync) Run

func (s *GenericSync) Run() (chan struct{}, error)

Run starts the synchronizer. To stop the synchronizer send a message to the channel.

Jump to

Keyboard shortcuts

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