servicenow

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AUTH_TYPE_BASIC                     AuthType       = "basic"
	AUTH_TYPE_OAUTH                     AuthType       = "oauth"
	OAUTH_GRANT_TYPE_PASSWORD           OAuthGrantType = "password"
	OAUTH_GRANT_TYPE_CLIENT_CREDENTIALS OAuthGrantType = "client_credentials"
)

Variables

This section is empty.

Functions

func New

Types

type AuthType added in v1.1.0

type AuthType string

type OAuthGrantType added in v1.1.0

type OAuthGrantType string

type Records

type Records struct {
	Result []map[string]interface{} `json:"result"`
}

type ServiceNowProvider

type ServiceNowProvider struct {
	Interop           *interop.Interop
	ApiURL            string
	ApiUser           string
	ApiPassword       string
	AuthType          AuthType
	OAuthTokenURL     string
	OAuthClientID     string
	OAuthClientSecret string
	OAuthGrantType    OAuthGrantType
	OAuthScopes       []string
	PageSize          int
}

func (*ServiceNowProvider) GetEntities

func (snp *ServiceNowProvider) GetEntities(
	config map[string]interface{},
	tags []string,
	lastUpdate *time.Time,
) (
	[]provider.Entity,
	error,
)

Jump to

Keyboard shortcuts

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