Documentation ¶
Index ¶
- type Client
- func (c *Client) Create(aadGroup *aadgroupsyncv1.AADGroupSync) (*aadgroupsyncv1.AADGroupSync, error)
- func (c *Client) Delete(aadGroupName string) error
- func (c *Client) Get(aadGroupName string) (*aadgroupsyncv1.AADGroupSync, error)
- func (c *Client) List() ([]aadgroupsyncv1.AADGroupSync, error)
- func (c *Client) Update(aadGroup *aadgroupsyncv1.AADGroupSync) (*aadgroupsyncv1.AADGroupSync, error)
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 ¶
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 ¶
NewClientForLocal creates a new AAD Group Sync Client from local copies of incluster resources. This is useful for testing
func (*Client) Create ¶
func (c *Client) Create(aadGroup *aadgroupsyncv1.AADGroupSync) (*aadgroupsyncv1.AADGroupSync, error)
Create creates a new 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 ¶
func (c *Client) Update(aadGroup *aadgroupsyncv1.AADGroupSync) (*aadgroupsyncv1.AADGroupSync, error)
Update updates an existing aadgroupsyncs.aad.microsoft.com CRD