client

package
v0.0.0-...-8784027 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2019 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Log       *logrus.Entry
	Config    *rest.Config
	Client    v1.AADGroupSyncInterface
	Namespace string
}

Client contains the internal AAD Group Sync Client details

func NewClient

func NewClient(namespace string, log *logrus.Entry) *Client

NewClient creates a new AAD Group Sync Client with default incluster configuration. You need to be running incluster for this to be successful

func NewClientForConfigAndNamespace

func NewClientForConfigAndNamespace(config *rest.Config, namespace string, log *logrus.Entry) *Client

NewClientForConfigAndNamespace creates a new AAD Group Sync Client with the specified configuration and namespace

func NewClientForLocal

func NewClientForLocal(namespace string, log *logrus.Entry) *Client

NewClientForLocal creates a new AAD Group Sync Client from local copies of incluster resources. This is useful for testing

func (*Client) Create

Create creates a new aadgroupsyncs.aad.microsoft.com CRD

func (*Client) Delete

func (c *Client) Delete(aadGroupName string) error

Delete deletes an existing aadgroupsyncs.aad.microsoft.com CRD

func (*Client) Get

func (c *Client) Get(aadGroupName string) (*aadgroupsyncv1.AADGroupSync, error)

Get returns an existing aadgroupsyncs.aad.microsoft.com CRD

func (*Client) List

func (c *Client) List() ([]aadgroupsyncv1.AADGroupSync, error)

List returns a collection of existing aadgroupsyncs.aad.microsoft.com CRDs

func (*Client) Update

Update updates an existing aadgroupsyncs.aad.microsoft.com CRD

Jump to

Keyboard shortcuts

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