struct Kube::NamespacedName

Overview

NamespacedName comprises a resource name, with a mandatory namespace, rendered as "/". Being a type captures intent and helps make sure that UIDs, namespaced names and non-namespaced names do not get conflated in code. For most use cases, namespace and name will already have been format validated at the API entry point, so we don't do that here.

Defined in:

kube/types.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(namespace : String, name : String) #

[View source]

Instance Method Detail

def name : String #

[View source]
def name=(name : String) #

[View source]
def namespace : String #

[View source]
def namespace=(namespace : String) #

[View source]
def new(namespace_name : String) #

[View source]
def to_s(io) #

[View source]