Documentation ¶
Index ¶
Constants ¶
View Source
const ( PortName = "http" PortNumber = 80 MessagingRoleLabel = "messaging.knative.dev/role" MessagingRole = "in-memory-channel" )
Variables ¶
This section is empty.
Functions ¶
func NewK8sService ¶
func NewK8sService(imc *v1alpha1.InMemoryChannel, opts ...K8sServiceOption) (*corev1.Service, error)
NewK8sService creates a new Service for a Channel resource. It also sets the appropriate OwnerReferences on the resource so handleObject can discover the Channel resource that 'owns' it. As well as being garbage collected when the Channel is deleted.
Types ¶
type K8sServiceOption ¶
ServiceOption can be used to optionally modify the K8s service in CreateK8sService
func ExternalService ¶
func ExternalService(namespace, service string) K8sServiceOption
ExternalService is a functional option for CreateK8sService to create a K8s service of type ExternalName pointing to the specified service in a namespace.
Click to show internal directories.
Click to hide internal directories.