collector

package
v1.50.3 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2024 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApiToOpenApiSpec

func ApiToOpenApiSpec(apiRegistrationRequests map[string][]*apispb.RegistrationRequest, apiSecurityDefinitions map[string]map[string]*resourcespb.ApiSecurityDefinitionResource, projectErrors *ProjectErrors) (*openapi3.T, error)

func GetMigrationImageBuildContexts added in v1.42.0

func GetMigrationImageBuildContexts(allServiceRequirements []*ServiceRequirements, fs afero.Fs) (map[string]*runtime.RuntimeBuildContext, error)

Collect a list of migration images that need to be built these requirements need to be supplied to the deployment serviceS

func ServiceRequirementsToSpec

func ServiceRequirementsToSpec(projectName string, environmentVariables map[string]string, allServiceRequirements []*ServiceRequirements, defaultMigrationImage string) (*deploymentspb.Spec, error)

convert service requirements to a cloud bill of materials

Types

type ApiCollectorServer

type ApiCollectorServer struct {
	apispb.UnimplementedApiServer
	// contains filtered or unexported fields
}

func (*ApiCollectorServer) Serve

type ProjectErrors

type ProjectErrors struct {
	// contains filtered or unexported fields
}

func (*ProjectErrors) Add

func (pe *ProjectErrors) Add(err error)

func (ProjectErrors) Error

func (pe ProjectErrors) Error() error

type ServiceRequirements

type ServiceRequirements struct {
	ApiServer apispb.ApiServer
	// contains filtered or unexported fields
}

ServiceRequirements - Cloud resource requirements for a Nitric Application Service

Hosts all Nitric resource servers in a collection-only mode, where services can call into the servers to request resources they require for their operation.

func NewServiceRequirements

func NewServiceRequirements(serviceName string, serviceFile string, serviceType string) *ServiceRequirements

func (*ServiceRequirements) Access added in v1.48.1

Secrets

func (*ServiceRequirements) ApiDetails added in v1.48.1

API

func (*ServiceRequirements) Complete added in v1.48.1

func (*ServiceRequirements) ConnectionString added in v1.48.1

SQL

func (*ServiceRequirements) Delete added in v1.48.1

func (*ServiceRequirements) DeleteKey added in v1.48.1

func (*ServiceRequirements) Dequeue added in v1.48.1

func (*ServiceRequirements) Enqueue added in v1.48.1

Queues

func (*ServiceRequirements) Error

func (s *ServiceRequirements) Error() error

Error - Returns an error if any requirements have been registered incorrectly, such as duplicates

func (*ServiceRequirements) Exists added in v1.48.1

func (*ServiceRequirements) GetValue added in v1.48.1

KeyValue

func (*ServiceRequirements) HandleEvents

func (*ServiceRequirements) HasDatabases added in v1.42.0

func (s *ServiceRequirements) HasDatabases() bool

TODO: Remove when databases are no longer in preview

func (*ServiceRequirements) ListBlobs added in v1.48.1

func (*ServiceRequirements) Listen

func (*ServiceRequirements) PreSignUrl added in v1.48.1

func (*ServiceRequirements) Proxy

func (*ServiceRequirements) Publish added in v1.48.1

Topics

func (*ServiceRequirements) Put added in v1.48.1

func (*ServiceRequirements) Read added in v1.48.1

Buckets

func (*ServiceRequirements) ScanKeys added in v1.48.1

func (*ServiceRequirements) Schedule

func (*ServiceRequirements) SendMessage added in v1.48.1

func (*ServiceRequirements) Serve

func (*ServiceRequirements) SetValue added in v1.48.1

func (*ServiceRequirements) SocketDetails added in v1.48.1

Websockets

func (*ServiceRequirements) Subscribe

func (*ServiceRequirements) WorkerCount

func (s *ServiceRequirements) WorkerCount() int

func (*ServiceRequirements) Write added in v1.48.1

Jump to

Keyboard shortcuts

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