scp

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2019 License: Apache-2.0 Imports: 15 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppReg

type AppReg struct {
	ClientID                string    `json:"clientId"`
	ClientSecret            string    `json:"clientSecret"`
	CreatedAt               time.Time `json:"createdAt"`
	CreatedBy               string    `json:"createdBy"`
	Kind                    string    `json:"kind"`
	Name                    string    `json:"name"`
	Title                   string    `json:"title"`
	AppPrincipalPermissions []string  `json:"appPrincipalPermissions"`
	Description             string    `json:"description"`
	LoginURL                string    `json:"loginUrl"`
	LogoURL                 string    `json:"logoUrl,omitempty"`
	RedirectUrls            []string  `json:"redirectUrls"`
	SetupURL                string    `json:"setupUrl,omitempty"`
	UserPermissionsFilter   []string  `json:"userPermissionsFilter"`
	WebhookURL              string    `json:"webhookUrl,omitempty"`
}

AppReg -- application registration result

func (*AppReg) Load

func (a *AppReg) Load(filename string) error

Load --

type Client

type Client struct {
	Tenant      string
	TokenSource oauth2.TokenSource
	Service     *sdk.Client
}

Client --

func NewClient

func NewClient(tenant, clientID, clientSecret string) *Client

NewClient -- create SCP client using TokenSource (client ID & secret)

func (*Client) Authenticate

func (c *Client) Authenticate() error

Authenticate --

func (*Client) IngestEvent

func (c *Client) IngestEvent(e *ingest.Event) error

IngestEvent --

func (*Client) IngestEvents

func (c *Client) IngestEvents(events *[]ingest.Event) error

IngestEvents --

Jump to

Keyboard shortcuts

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