client_plugin

package
v0.0.24 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GetResponse

type GetResponse struct {
	AccountId         string               `protobuf:"bytes,1,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"`
	IntegrationName   string               `protobuf:"bytes,2,opt,name=integration_name,json=integrationName,proto3" json:"integration_name,omitempty"`
	IntegrationConfig []*IntegrationConfig `protobuf:"bytes,4,rep,name=integration_config,json=integrationConfig,proto3" json:"integration_config,omitempty"`
}

type Grant

type Grant struct {
	Name    string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Allowed bool   `protobuf:"varint,2,opt,name=allowed,proto3" json:"allowed,omitempty"`
}

type HTTPClient

type HTTPClient interface {
	PostResource(ctx context.Context, obj interface{}) error
	FetchConfig(ctx context.Context) (*IntegrationConfig, error)
	IsResourceAllowed(ctx context.Context, requiredGrants ...string) (bool, error)
}

func NewHTTPClient

func NewHTTPClient() (HTTPClient, error)

type IntegrationConfig

type IntegrationConfig struct {
	Grants []*Grant `protobuf:"bytes,3,rep,name=grants,proto3" json:"grants,omitempty"`
}

Jump to

Keyboard shortcuts

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