svc

package
v0.0.0-...-fc21188 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DEFAULT_NAMESPACE = "default"
)
View Source
const (
	REDIS_PORT_DEFAULT = 6379
)
View Source
const (
	SENTINEL_PORT_DEFAULT = 26379
)

Variables

This section is empty.

Functions

This section is empty.

Types

type RedisRecipient

type RedisRecipient struct {
	Name, Namespace, ResourceName string
	PortName, SyncName            string
	ServicePort                   int
}

func NewRedisRecipient

func NewRedisRecipient(name, namespace, resourceName, portName, syncPortName string, clientPort int) *RedisRecipient

func (*RedisRecipient) GenerateArtifact

func (recipe *RedisRecipient) GenerateArtifact() (*apiv1.Service, error)

type SentinelRecipient

type SentinelRecipient struct {
	Name, Namespace        string
	ResourceName, PortName string
	ServicePort            int
}

func NewSentinelRecipient

func NewSentinelRecipient(name, namespace, resourceName, portName string, port int) *SentinelRecipient

func (*SentinelRecipient) GenerateArtifact

func (recipe *SentinelRecipient) GenerateArtifact() (*apiv1.Service, error)

type ServiceRecipient

type ServiceRecipient interface {
	GenerateArtifact() (*apiv1.Service, error)
}

Jump to

Keyboard shortcuts

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