services

package
v0.0.0-...-d6856c1 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2020 License: Apache-2.0 Imports: 16 Imported by: 4 modules, 21 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const ChownPath = "chown"

ChownPath is the path and the name of the chown endpoint.

View Source
const PropCollectionUpdatePath = "prop-collection-update"

PropCollectionUpdatePath is the path and the name of the prop-collection-update endpoint.

View Source
const SetTagPath = "set-tag"

SetTagPath is the path and the name of the set-tag endpoint.

Variables

View Source
var (
	// TagTypeNotUniquePerObject contains not unique tag-types per object
	TagTypeNotUniquePerObject = map[string]bool{
		"label": true,
	}
	// TagTypeAuthorizedOnAddressGroup contains authorized on address group tag-types
	TagTypeAuthorizedOnAddressGroup = map[string]bool{
		"label": true,
	}
)

Functions

func ContrailPlugins

func ContrailPlugins(
	sv Service,
	itd services.InTransactionDoer,
	mg services.MetadataGetter,
) []apiserver.APIPlugin

ContrailPlugins returns plugins specific to Contrail.

Types

type ChownPlugin

type ChownPlugin struct {
	Service           Service
	InTransactionDoer asfservices.InTransactionDoer
	MetadataGetter    asfservices.MetadataGetter
}

ChownPlugin provides chown HTTP endpoint and GRPC service.

func (*ChownPlugin) Chown

func (p *ChownPlugin) Chown(ctx context.Context, request *ChownRequest) (*types.Empty, error)

Chown handles chown request.

func (*ChownPlugin) RESTChown

func (p *ChownPlugin) RESTChown(c echo.Context) error

RESTChown handles chown request.

func (*ChownPlugin) RegisterGRPCAPI

func (p *ChownPlugin) RegisterGRPCAPI(r apiserver.GRPCRouter)

RegisterGRPCAPI registers the chown GRPC service.

func (*ChownPlugin) RegisterHTTPAPI

func (p *ChownPlugin) RegisterHTTPAPI(r apiserver.HTTPRouter)

RegisterHTTPAPI registers the chown endpoint.

type PropCollectionUpdatePlugin

type PropCollectionUpdatePlugin struct {
	Service           Service
	InTransactionDoer services.InTransactionDoer
	MetadataGetter    services.MetadataGetter
}

PropCollectionUpdatePlugin provides prop-collection-update HTTP endpoint and GRPC service.

func (*PropCollectionUpdatePlugin) PropCollectionUpdate

func (p *PropCollectionUpdatePlugin) PropCollectionUpdate(
	ctx context.Context, request *PropCollectionUpdateRequest,
) (*types.Empty, error)

PropCollectionUpdate handles a prop-collection-update grpc request.

func (*PropCollectionUpdatePlugin) RESTPropCollectionUpdate

func (p *PropCollectionUpdatePlugin) RESTPropCollectionUpdate(c echo.Context) error

RESTPropCollectionUpdate handles a prop-collection-update request.

func (*PropCollectionUpdatePlugin) RegisterGRPCAPI

func (p *PropCollectionUpdatePlugin) RegisterGRPCAPI(r apiserver.GRPCRouter)

RegisterGRPCAPI registers the prop-collection-update GRPC service.

func (*PropCollectionUpdatePlugin) RegisterHTTPAPI

func (p *PropCollectionUpdatePlugin) RegisterHTTPAPI(r apiserver.HTTPRouter)

RegisterHTTPAPI registers the prop-collection-update endpoint.

type SetTagPlugin

type SetTagPlugin struct {
	Service           Service
	InTransactionDoer services.InTransactionDoer
	MetadataGetter    services.MetadataGetter
}

SetTagPlugin provides set-tag HTTP endpoint and GRPC service.

func (*SetTagPlugin) RESTSetTag

func (p *SetTagPlugin) RESTSetTag(c echo.Context) error

RESTSetTag handles set-tag request.

func (*SetTagPlugin) RegisterGRPCAPI

func (p *SetTagPlugin) RegisterGRPCAPI(r apiserver.GRPCRouter)

RegisterGRPCAPI registers the set-tag GRPC service.

func (*SetTagPlugin) RegisterHTTPAPI

func (p *SetTagPlugin) RegisterHTTPAPI(r apiserver.HTTPRouter)

RegisterHTTPAPI registers the set-tag endpoint.

func (*SetTagPlugin) SetTag

func (p *SetTagPlugin) SetTag(ctx context.Context, setTag *SetTagRequest) (*types.Empty, error)

SetTag allows setting tags based on SetTagRequest.

type TagLocator

type TagLocator interface {
	GetUUID() string
	GetFQName() []string
	GetPerms2() *models.PermType2
	GetParentType() string
	Kind() string
}

TagLocator is an object that references a tag and helps determining tag scope.

type UserAgentKVService

type UserAgentKVService interface {
	StoreKeyValue(ctx context.Context, key string, value string) error
	RetrieveValues(ctx context.Context, keys []string) (vals []string, err error)
	DeleteKey(ctx context.Context, key string) error
	RetrieveKVPs(ctx context.Context) (kvps []*asfservices.KeyValuePair, err error)
}

UserAgentKVService is a service which manages operations on key-value store

Directories

Path Synopsis
Package servicesmock is a generated GoMock package.
Package servicesmock is a generated GoMock package.

Jump to

Keyboard shortcuts

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