ssoadmin

package
v0.0.0-...-d5d7872 Latest Latest
Warning

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

Go to latest
Published: May 31, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Namespace = "sso"
	Version   = "version2"
	Path      = "/sso-adminserver" + vim25.Path
)

Variables

View Source
var (
	ServiceInstance = vim.ManagedObjectReference{
		Type:  "SsoAdminServiceInstance",
		Value: "SsoAdminServiceInstance",
	}
)

Functions

This section is empty.

Types

type Client

type Client struct {
	*soap.Client

	RoundTripper   soap.RoundTripper
	ServiceContent types.AdminServiceContent
	GroupCheck     types.GroupcheckServiceContent
	Domain         string
	Limit          int32
}

func NewClient

func NewClient(ctx context.Context, c *vim25.Client) (*Client, error)

func (*Client) AddGroupsToGroup

func (c *Client) AddGroupsToGroup(ctx context.Context, groupName string, groupIDs ...types.PrincipalId) error

func (*Client) AddUsersToGroup

func (c *Client) AddUsersToGroup(ctx context.Context, groupName string, userIDs ...types.PrincipalId) error

func (*Client) CreateGroup

func (c *Client) CreateGroup(ctx context.Context, name string, details types.AdminGroupDetails) error

func (*Client) CreatePersonUser

func (c *Client) CreatePersonUser(ctx context.Context, name string, details types.AdminPersonDetails, password string) error

func (*Client) CreateSolutionUser

func (c *Client) CreateSolutionUser(ctx context.Context, name string, details types.AdminSolutionDetails) error

func (*Client) DeletePrincipal

func (c *Client) DeletePrincipal(ctx context.Context, name string) error

func (*Client) FindGroup

func (c *Client) FindGroup(ctx context.Context, name string) (*types.AdminGroup, error)

func (*Client) FindGroups

func (c *Client) FindGroups(ctx context.Context, search string) ([]types.AdminGroup, error)

func (*Client) FindGroupsInGroup

func (c *Client) FindGroupsInGroup(ctx context.Context, name string, search string) ([]types.AdminGroup, error)

func (*Client) FindParentGroups

func (c *Client) FindParentGroups(ctx context.Context, id types.PrincipalId, groups ...types.PrincipalId) ([]types.PrincipalId, error)

func (*Client) FindPersonUser

func (c *Client) FindPersonUser(ctx context.Context, name string) (*types.AdminPersonUser, error)

func (*Client) FindPersonUsers

func (c *Client) FindPersonUsers(ctx context.Context, search string) ([]types.AdminPersonUser, error)

func (*Client) FindSolutionUser

func (c *Client) FindSolutionUser(ctx context.Context, name string) (*types.AdminSolutionUser, error)

func (*Client) FindSolutionUsers

func (c *Client) FindSolutionUsers(ctx context.Context, search string) ([]types.AdminSolutionUser, error)

func (*Client) FindUser

func (c *Client) FindUser(ctx context.Context, name string) (*types.AdminUser, error)

func (*Client) FindUsersInGroup

func (c *Client) FindUsersInGroup(ctx context.Context, name string, search string) ([]types.AdminUser, error)

func (*Client) GetDefaultDomains

func (c *Client) GetDefaultDomains(ctx context.Context) ([]string, error)

func (*Client) GetLocalPasswordPolicy

func (c *Client) GetLocalPasswordPolicy(ctx context.Context) (*types.AdminPasswordPolicy, error)

func (*Client) GrantWSTrustRole

func (c *Client) GrantWSTrustRole(ctx context.Context, id types.PrincipalId, role string) (bool, error)

func (*Client) IdentitySources

func (c *Client) IdentitySources(ctx context.Context) (*types.IdentitySources, error)

func (*Client) Login

func (c *Client) Login(ctx context.Context) error

func (*Client) Logout

func (c *Client) Logout(ctx context.Context) error

func (*Client) RemoveUsersFromGroup

func (c *Client) RemoveUsersFromGroup(ctx context.Context, groupName string, userIDs ...types.PrincipalId) error

func (*Client) ResetPersonPassword

func (c *Client) ResetPersonPassword(ctx context.Context, name string, password string) error

func (*Client) RevokeWSTrustRole

func (c *Client) RevokeWSTrustRole(ctx context.Context, id types.PrincipalId, role string) (bool, error)

func (*Client) RoundTrip

func (c *Client) RoundTrip(ctx context.Context, req, res soap.HasFault) error

RoundTrip dispatches to the RoundTripper field.

func (*Client) SetDefaultDomains

func (c *Client) SetDefaultDomains(ctx context.Context, domain string) error

func (*Client) SetRole

func (c *Client) SetRole(ctx context.Context, id types.PrincipalId, role string) (bool, error)

func (*Client) UpdateGroup

func (c *Client) UpdateGroup(ctx context.Context, name string, details types.AdminGroupDetails) error

func (*Client) UpdateLdap

func (c *Client) UpdateLdap(ctx context.Context, name string, details types.LdapIdentitySourceDetails) error

func (*Client) UpdateLocalPasswordPolicy

func (c *Client) UpdateLocalPasswordPolicy(ctx context.Context, policy types.AdminPasswordPolicy) error

func (*Client) UpdatePersonUser

func (c *Client) UpdatePersonUser(ctx context.Context, name string, details types.AdminPersonDetails) error

func (*Client) UpdateSolutionUser

func (c *Client) UpdateSolutionUser(ctx context.Context, name string, details types.AdminSolutionDetails) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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