client

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2022 License: MPL-2.0 Imports: 12 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 {
	TrustFrameworkPolicyClient *TrustFrameworkPolicyClient
	TrustFrameworkKeySetClient *TrustFrameworkKeySetClient
	Config                     *MsGraphClientConfig
}

func New

func New(config MsGraphClientConfig) (*Client, error)

type MsGraphClientConfig

type MsGraphClientConfig struct {
	TenantID            string
	ClientID            string
	ClientSecret        string
	EnableAzureCliToken bool
}

type TrustFrameworkKeySetClient

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

func (*TrustFrameworkKeySetClient) CreateKey

func (*TrustFrameworkKeySetClient) DeleteKey

func (c *TrustFrameworkKeySetClient) DeleteKey(ctx context.Context, id string) (int, error)

func (*TrustFrameworkKeySetClient) GenerateKey

func (*TrustFrameworkKeySetClient) GetActiveKey

func (*TrustFrameworkKeySetClient) GetKeySet

func (*TrustFrameworkKeySetClient) UploadSecret

type TrustFrameworkPolicyClient

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

func (*TrustFrameworkPolicyClient) Create

func (c *TrustFrameworkPolicyClient) Create(ctx context.Context, policyXml *string) (int, error)

func (*TrustFrameworkPolicyClient) Delete

func (c *TrustFrameworkPolicyClient) Delete(ctx context.Context, name string) (int, error)

func (*TrustFrameworkPolicyClient) Get

func (*TrustFrameworkPolicyClient) Update

func (c *TrustFrameworkPolicyClient) Update(ctx context.Context, policy *models.Policy) (int, error)

Jump to

Keyboard shortcuts

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