ldapprovider

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Copyright 2019 Cohesity Inc.

Copyright 2019 Cohesity Inc.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LDAPPROVIDER

type LDAPPROVIDER interface {
	GetLdapProvider([]int64, []string, *bool) ([]*models.LdapProviderResponse, error)

	CreateLdapProvider(*models.LdapProvider) (*models.LdapProviderResponse, error)

	UpdateLdapProvider(*models.UpdateLdapProviderParam) (*models.LdapProviderResponse, error)

	DeleteLdapProvider(int64) error

	GetLdapProviderStatus(int64) error
}

* Interface for the LDAPPROVIDER_IMPL

type LDAPPROVIDER_IMPL

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

* Client structure as interface implementation

func NewLDAPPROVIDER

func NewLDAPPROVIDER(config configuration.CONFIGURATION) *LDAPPROVIDER_IMPL

* Factory for the LDAPPROVIDER interaface returning LDAPPROVIDER_IMPL

func (*LDAPPROVIDER_IMPL) CreateLdapProvider

func (me *LDAPPROVIDER_IMPL) CreateLdapProvider(
	body *models.LdapProvider) (*models.LdapProviderResponse, error)

*

  • Returns the created LDAP provider.
  • @param *models.LdapProvider body parameter: Required
  • @return Returns the *models.LdapProviderResponse response from the API call

func (*LDAPPROVIDER_IMPL) DeleteLdapProvider

func (me *LDAPPROVIDER_IMPL) DeleteLdapProvider(
	id int64) error

*

  • Delete an LDAP provider.
  • @param int64 id parameter: Required
  • @return Returns the response from the API call

func (*LDAPPROVIDER_IMPL) GetLdapProvider

func (me *LDAPPROVIDER_IMPL) GetLdapProvider(
	ids []int64,
	tenantIds []string,
	allUnderHierarchy *bool) ([]*models.LdapProviderResponse, error)

*

  • Lists the LDAP providers.
  • @param []int64 ids parameter: Optional
  • @param []string tenantIds parameter: Optional
  • @param *bool allUnderHierarchy parameter: Optional
  • @return Returns the []*models.LdapProviderResponse response from the API call

func (*LDAPPROVIDER_IMPL) GetLdapProviderStatus

func (me *LDAPPROVIDER_IMPL) GetLdapProviderStatus(
	id int64) error

*

  • Get the connection status of an LDAP provider.
  • @param int64 id parameter: Required
  • @return Returns the response from the API call

func (*LDAPPROVIDER_IMPL) UpdateLdapProvider

*

  • Returns the updated LDAP provider.
  • @param *models.UpdateLdapProviderParam body parameter: Required
  • @return Returns the *models.LdapProviderResponse response from the API call

Jump to

Keyboard shortcuts

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