zmscli

package
v1.7.49 Latest Latest
Warning

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

Go to latest
Published: May 26, 2018 License: Apache-2.0 Imports: 18 Imported by: 0

README

zmscli

ZMS Client application library in go to manage your Athenz domain in ZMS Server.

GoDoc

License

Copyright 2016 Yahoo Inc.

Licensed under the Apache License, Version 2.0

Documentation

Overview

Package zmscli is ZMS Client application library to manage an Athenz domain in ZMS Server.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Zms

type Zms struct {
	ZmsUrl           string
	Identity         string
	Verbose          bool
	Bulkmode         bool
	Interactive      bool
	Zms              zms.ZMSClient
	Domain           string
	AuditRef         string
	UserDomain       string
	HomeDomain       string
	ProductIdSupport bool
	Debug            bool
}

func (Zms) AddAssertion

func (cli Zms) AddAssertion(dn string, pn string, assertion []string) (*string, error)

func (Zms) AddDelegatedRole

func (cli Zms) AddDelegatedRole(dn string, rn string, trusted string) (*string, error)

func (Zms) AddDomain

func (cli Zms) AddDomain(dn string, productID *int32, admins []string) (*string, error)

func (Zms) AddEntity

func (cli Zms) AddEntity(dn string, en string, values []string) (*string, error)

func (Zms) AddGroupRole

func (cli Zms) AddGroupRole(dn string, rn string, roleMembers []*zms.RoleMember) (*string, error)

func (Zms) AddMembers

func (cli Zms) AddMembers(dn string, rn string, members []string) (*string, error)

func (Zms) AddPolicy

func (cli Zms) AddPolicy(dn string, pn string, assertion []string) (*string, error)

func (Zms) AddPolicyWithAssertions

func (cli Zms) AddPolicyWithAssertions(dn string, pn string, assertions []*zms.Assertion) (*string, error)

func (Zms) AddProviderResourceGroupRoles

func (cli Zms) AddProviderResourceGroupRoles(tenantDomain string, providerDomain string, providerService string, resourceGroup string, roleActions []string) (*string, error)

func (Zms) AddProviderRoleMembers

func (cli Zms) AddProviderRoleMembers(dn string, provider string, group string, action string, members []string) (*string, error)

func (Zms) AddProviderService

func (cli Zms) AddProviderService(dn string, sn string, keyID string, pubKey *string) (*string, error)

func (Zms) AddRoleMembers added in v1.1.5

func (cli Zms) AddRoleMembers(dn string, rn string, members []*zms.RoleMember) (*string, error)

func (Zms) AddService

func (cli Zms) AddService(dn string, sn string, keyID string, pubKey *string) (*string, error)

func (Zms) AddServiceHost

func (cli Zms) AddServiceHost(dn string, sn string, hosts []string) (*string, error)

func (Zms) AddServicePublicKey

func (cli Zms) AddServicePublicKey(dn string, sn string, keyID string, pubKey *string) (*string, error)

func (Zms) AddServiceWithKeys

func (cli Zms) AddServiceWithKeys(dn string, sn string, publicKeys []*zms.PublicKeyEntry) (*string, error)

func (Zms) AddTemporaryMember added in v1.1.5

func (cli Zms) AddTemporaryMember(dn string, rn string, member string, expiration rdl.Timestamp) (*string, error)

func (Zms) AddTenancy

func (cli Zms) AddTenancy(dn string, provider string) (*string, error)

func (Zms) AddTenantResourceGroupRoles

func (cli Zms) AddTenantResourceGroupRoles(provDomain string, provService string, tenantDomain string, resourceGroup string, roleActions []string) (*string, error)

func (Zms) CheckDomain

func (cli Zms) CheckDomain(dn string) (*string, error)

func (Zms) CheckMembers

func (cli Zms) CheckMembers(dn string, rn string, members []string) (*string, error)

func (*Zms) Complete

func (cli *Zms) Complete(expr string) (string, []string)

func (Zms) DeleteAssertion

func (cli Zms) DeleteAssertion(dn string, pn string, assertion []string) (*string, error)

func (Zms) DeleteDomain

func (cli Zms) DeleteDomain(dn string) (*string, error)

DeleteDomain dletes the given ZMS domain.

func (Zms) DeleteDomainTemplate

func (cli Zms) DeleteDomainTemplate(dn string, template string) (*string, error)

func (Zms) DeleteEntity

func (cli Zms) DeleteEntity(dn string, en string) (*string, error)

func (Zms) DeleteMembers

func (cli Zms) DeleteMembers(dn string, rn string, members []string) (*string, error)

func (Zms) DeletePolicy

func (cli Zms) DeletePolicy(dn string, pn string) (*string, error)

func (Zms) DeleteProviderResourceGroupRoles

func (cli Zms) DeleteProviderResourceGroupRoles(tenantDomain string, providerDomain string, providerService string, resourceGroup string) (*string, error)

func (Zms) DeleteProviderRoleMembers

func (cli Zms) DeleteProviderRoleMembers(dn string, provider string, group string, action string, members []string) (*string, error)

func (Zms) DeleteQuota added in v1.7.19

func (cli Zms) DeleteQuota(dn string) (*string, error)

func (Zms) DeleteRole

func (cli Zms) DeleteRole(dn string, rn string) (*string, error)

func (Zms) DeleteService

func (cli Zms) DeleteService(dn string, sn string) (*string, error)

func (Zms) DeleteServiceHost

func (cli Zms) DeleteServiceHost(dn string, sn string, hosts []string) (*string, error)

func (Zms) DeleteServicePublicKey

func (cli Zms) DeleteServicePublicKey(dn string, sn string, keyID string) (*string, error)

func (Zms) DeleteTenancy

func (cli Zms) DeleteTenancy(dn string, provider string) (*string, error)

func (Zms) DeleteTenantResourceGroupRoles

func (cli Zms) DeleteTenantResourceGroupRoles(provDomain string, provService string, tenantDomain string, resourceGroup string) (*string, error)

func (Zms) DeleteUser added in v1.7.11

func (cli Zms) DeleteUser(user string) (*string, error)

func (*Zms) Eval

func (cli *Zms) Eval(expr string) (string, bool, error)

func (*Zms) EvalCommand

func (cli *Zms) EvalCommand(params []string) (*string, error)

func (Zms) ExportDomain

func (cli Zms) ExportDomain(dn string, filename string) (*string, error)

func (Zms) GetQuota added in v1.7.19

func (cli Zms) GetQuota(dn string) (*string, error)

func (Zms) GetSignedDomains

func (cli Zms) GetSignedDomains(dn string, matchingTag string) (*string, error)

func (Zms) HelpListCommand

func (cli Zms) HelpListCommand() string

HelpListCommand builds and returns the overall help text for all commands.

func (Zms) HelpSpecificCommand

func (cli Zms) HelpSpecificCommand(interactive bool, cmd string) string

HelpSpecificCommand returns the help string for the given command.

func (Zms) ImportDomain

func (cli Zms) ImportDomain(dn string, filename string, admins []string) (*string, error)

func (Zms) ListDomainTemplates

func (cli Zms) ListDomainTemplates(dn string) (*string, error)

func (Zms) ListDomains

func (cli Zms) ListDomains(limit *int32, skip string, prefix string, depth *int32) (*string, error)

func (Zms) ListEntities

func (cli Zms) ListEntities(dn string) (*string, error)

func (Zms) ListPolicies

func (cli Zms) ListPolicies(dn string) (*string, error)

func (Zms) ListRoles

func (cli Zms) ListRoles(dn string) (*string, error)

func (Zms) ListServerTemplates

func (cli Zms) ListServerTemplates() (*string, error)

func (Zms) ListServices

func (cli Zms) ListServices(dn string) (*string, error)

func (Zms) ListUsers added in v1.7.11

func (cli Zms) ListUsers() (*string, error)

func (Zms) LookupDomainById

func (cli Zms) LookupDomainById(account string, productID *int32) (*string, error)

func (Zms) LookupDomainByRole

func (cli Zms) LookupDomainByRole(roleMember string, roleName string) (*string, error)

func (*Zms) Prompt

func (cli *Zms) Prompt() string

func (Zms) RemoveAll

func (cli Zms) RemoveAll(fullList []string, removeList []string) []string

func (*Zms) Repl

func (cli *Zms) Repl() (*string, error)

func (*Zms) Reset

func (cli *Zms) Reset()

func (*Zms) SetClient

func (cli *Zms) SetClient(tr *http.Transport, authHeader, ntoken *string)

func (Zms) SetCompleteDomainMeta

func (cli Zms) SetCompleteDomainMeta(dn string, descr string, org string, auditEnabled bool, account string, productID int32, applicationID string) error

func (Zms) SetDefaultAdmins

func (cli Zms) SetDefaultAdmins(dn string, admins []string) (*string, error)

func (Zms) SetDomainAccount

func (cli Zms) SetDomainAccount(dn string, account string) (*string, error)

func (Zms) SetDomainApplicationId added in v1.7.25

func (cli Zms) SetDomainApplicationId(dn string, applicationID string) (*string, error)

func (Zms) SetDomainMeta

func (cli Zms) SetDomainMeta(dn string, descr string, org string, auditEnabled bool) (*string, error)

func (Zms) SetDomainProductId

func (cli Zms) SetDomainProductId(dn string, productID int32) (*string, error)

func (Zms) SetDomainTemplate

func (cli Zms) SetDomainTemplate(dn string, templateArgs []string) (*string, error)

func (Zms) SetQuota added in v1.7.19

func (cli Zms) SetQuota(dn string, attrs []string) (*string, error)

func (Zms) SetServiceEndpoint

func (cli Zms) SetServiceEndpoint(dn string, sn string, endpoint string) (*string, error)

func (Zms) SetServiceExe

func (cli Zms) SetServiceExe(dn string, sn string, exe string, user string, group string) (*string, error)

func (*Zms) SetX509CertClient added in v1.7.44

func (cli *Zms) SetX509CertClient(keyFile, certFile, caCertFile, socksProxy string, httpProxy, skipVerify bool) error

func (Zms) ShowAccess

func (cli Zms) ShowAccess(dn string, action string, resource string, altIdent *string, altDomain *string) (*string, error)

ShowAccess returns access indicator as string: 'access: granted' or 'access: denied'.

func (Zms) ShowAccessExt added in v1.1.6

func (cli Zms) ShowAccessExt(dn string, action string, resource string, altIdent *string, altDomain *string) (*string, error)

ShowAccessExt returns access indicator as string: 'access: granted' or 'access: denied'.

func (Zms) ShowDomain

func (cli Zms) ShowDomain(dn string) (*string, error)

func (Zms) ShowEntity

func (cli Zms) ShowEntity(dn string, en string) (*string, error)

func (Zms) ShowPolicy

func (cli Zms) ShowPolicy(dn string, name string) (*string, error)

func (Zms) ShowProviderResourceGroupRoles

func (cli Zms) ShowProviderResourceGroupRoles(tenantDomain string, providerDomain string, providerService string, resourceGroup string) (*string, error)

func (Zms) ShowProviderRoleMembers

func (cli Zms) ShowProviderRoleMembers(dn string, provider string, group string, action string) (*string, error)

func (Zms) ShowResourceAccess

func (cli Zms) ShowResourceAccess(principal string, action string) (*string, error)

func (Zms) ShowRole

func (cli Zms) ShowRole(dn string, rn string, auditLog, expand bool) (*string, error)

func (Zms) ShowServerTemplate

func (cli Zms) ShowServerTemplate(templateName string) (*string, error)

func (Zms) ShowService

func (cli Zms) ShowService(dn string, sn string) (*string, error)

func (Zms) ShowServicePublicKey

func (cli Zms) ShowServicePublicKey(dn string, sn string, keyID string) (*string, error)

func (Zms) ShowTenantResourceGroupRoles

func (cli Zms) ShowTenantResourceGroupRoles(provDomain string, provService string, tenantDomain string, resourceGroup string) (*string, error)

func (*Zms) Start

func (cli *Zms) Start() []string

func (*Zms) Stop

func (cli *Zms) Stop(history []string)

func (Zms) SystemBackup

func (cli Zms) SystemBackup(dir string) (*string, error)

func (Zms) UpdateDomain

func (cli Zms) UpdateDomain(dn string, filename string) (*string, error)

Jump to

Keyboard shortcuts

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