Help us shape the future of Go! Take the 2026 Go Developer Survey

azureGraph

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateClient

func CreateClient(c *ClientSecretCredentials) (client *msgraphsdk.GraphServiceClient, error error)

func FilterAndFormatIngressHosts added in v0.0.5

func FilterAndFormatIngressHosts(ingressList *v1.IngressList, domainFilter string, ingressClassFilter string) (ingressHosts []string, err error)

func GetReplyURLs

func GetReplyURLs(appId string, graphClient *msgraphsdk.GraphServiceClient) (replyURLs []string, err error)

func GraphAuth

func GraphAuth(c *ClientSecretCredentials) (graphCreds *a.AzureIdentityAuthenticationProvider, err error)

func PatchAppRegistration

func PatchAppRegistration(creds ClientSecretCredentials, patchOptions PatchOptions) (removedURLS []string, err error)

func PatchAppReplyURLs

func PatchAppReplyURLs(appId string, urls []string, graphClient *msgraphsdk.GraphServiceClient) error

func ProcessHost

func ProcessHost(ingresses *v1.IngressList, syncSpec v1alpha1.ReplyURLSyncSpec, creds ClientSecretCredentials) (result ctrl.Result, err error)

Types

type ClientSecretCredentials added in v0.0.10

type ClientSecretCredentials struct {
	TenantID     string
	ClientID     string
	ClientSecret string
}

type FieldNotFoundError

type FieldNotFoundError struct {
	Field    string
	Resource string
}

func (FieldNotFoundError) Error

func (err FieldNotFoundError) Error() string

func (*FieldNotFoundError) SetField

func (err *FieldNotFoundError) SetField(field string)

func (*FieldNotFoundError) SetResource

func (err *FieldNotFoundError) SetResource(resource string)

type PatchOptions

type PatchOptions struct {
	IngressHosts []string
	Syncer       v1alpha1.ReplyURLSync
}

Jump to

Keyboard shortcuts

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