datamodel

package
v0.33.0 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RabbitMQQueue

type RabbitMQQueue struct {
	v1.BaseResource

	// Properties is the properties of the resource.
	Properties RabbitMQQueueProperties `json:"properties"`

	// ResourceMetadata represents internal DataModel properties common to all portable resource types.
	pr_dm.PortableResourceMetadata
}

RabbitMQQueue represents RabbitMQQueue portable resource.

func (*RabbitMQQueue) ApplyDeploymentOutput

func (r *RabbitMQQueue) ApplyDeploymentOutput(do rpv1.DeploymentOutput) error

ApplyDeploymentOutput updates the RabbitMQQueue instance with the DeployedOutputResources from the DeploymentOutput object and returns no error.

func (*RabbitMQQueue) OutputResources

func (r *RabbitMQQueue) OutputResources() []rpv1.OutputResource

OutputResources returns the OutputResources from the Properties of the RabbitMQQueue instance.

func (*RabbitMQQueue) Recipe

Recipe returns the recipe for the RabbitMQQueue. It gets the ResourceRecipe associated with the RabbitMQQueue instance if the ResourceProvisioning is not set to Manual, otherwise it returns nil.

func (*RabbitMQQueue) ResourceMetadata

func (r *RabbitMQQueue) ResourceMetadata() *rpv1.BasicResourceProperties

ResourceMetadata returns the BasicResourceProperties of the RabbitMQQueue instance.

func (*RabbitMQQueue) ResourceTypeName

func (r *RabbitMQQueue) ResourceTypeName() string

ResourceTypeName returns the resource type name for RabbitMQ queues.

func (*RabbitMQQueue) VerifyInputs

func (r *RabbitMQQueue) VerifyInputs() error

VerifyInputs checks if the queue is provided when resourceProvisioning is set to manual and returns an error if not.

type RabbitMQQueueProperties

type RabbitMQQueueProperties struct {
	rpv1.BasicResourceProperties
	Queue                string                                 `json:"queue,omitempty"`
	Host                 string                                 `json:"host,omitempty"`
	Port                 int32                                  `json:"port,omitempty"`
	VHost                string                                 `json:"vHost,omitempty"`
	Username             string                                 `json:"username,omitempty"`
	Resources            []*portableresources.ResourceReference `json:"resources,omitempty"`
	Recipe               portableresources.ResourceRecipe       `json:"recipe,omitempty"`
	Secrets              RabbitMQSecrets                        `json:"secrets,omitempty"`
	ResourceProvisioning portableresources.ResourceProvisioning `json:"resourceProvisioning,omitempty"`
	TLS                  bool                                   `json:"tls,omitempty"`
}

RabbitMQQueueProperties represents the properties of RabbitMQQueue response resource.

type RabbitMQSecrets

type RabbitMQSecrets struct {
	URI      string `json:"uri,omitempty"`
	Password string `json:"password,omitempty"`
}

Secrets values consisting of secrets provided for the resource

func (RabbitMQSecrets) ResourceTypeName

func (rabbitmq RabbitMQSecrets) ResourceTypeName() string

ResourceTypeName returns the resource type name for RabbitMQ queues.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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