Documentation ¶
Index ¶
- Variables
- func Dump(ctx resource.Context, name string)
- func Setup(ns *Instance, cfg Config) resource.SetupFn
- type Config
- type Getter
- type Instance
- func Claim(ctx resource.Context, cfg Config) (i Instance, err error)
- func ClaimOrFail(t resource.ContextFailer, name string) Instance
- func GetAll(ctx resource.Context) ([]Instance, error)
- func New(ctx resource.Context, cfg Config) (i Instance, err error)
- func NewOrFail(t resource.ContextFailer, nsConfig Config) Instance
- type Static
- func (s Static) IsAmbient() bool
- func (s Static) IsInjected() bool
- func (s Static) Labels() (map[string]string, error)
- func (s Static) Name() string
- func (s Static) Prefix() string
- func (s Static) RemoveLabel(key string) error
- func (s Static) SetLabel(key, value string) error
- func (s *Static) UnmarshalJSON(bytes []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var NilGetter = func() Instance { return nil }
NilGetter is a Getter that always returns nil.
Functions ¶
Types ¶
type Config ¶
type Config struct { // Prefix to use for autogenerated namespace name Prefix string // Inject indicates whether to add sidecar injection label to this namespace Inject bool // Revision is the namespace of custom injector instance Revision string // Labels to be applied to namespace Labels map[string]string // SkipDump, if enabled, will disable dumping the namespace. This is useful to avoid duplicate // dumping of istio-system. SkipDump bool // SkipCleanup, if enabled, the namespace will not be deleted during cleanup. Used for istio-system namespace SkipCleanup bool }
Config contains configuration information about the namespace instance
type Getter ¶
type Getter func() Instance
Getter for a namespace Instance
type Instance ¶
type Instance interface { Name() string SetLabel(key, value string) error RemoveLabel(key string) error Prefix() string Labels() (map[string]string, error) IsAmbient() bool IsInjected() bool }
Instance represents an allocated namespace that can be used to create config, or deploy components in.
func ClaimOrFail ¶
func ClaimOrFail(t resource.ContextFailer, name string) Instance
ClaimOrFail calls Claim and fails test if it returns error
type Static ¶
type Static string
Static is a namespace that may or may not exist. It is used for configuration purposes only
func (Static) IsInjected ¶
func (Static) RemoveLabel ¶
func (*Static) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.