v3

package module
v3.8.0 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2022 License: MIT Imports: 19 Imported by: 1

Documentation

Index

Constants

View Source
const (
	// EntityNotFound is used to indicate that an entity was not found between
	// agentd and the agent
	// TODO(palourde): figure out a better way to express that than relying on a
	// special entity name
	EntityNotFound = "not found"
)
View Source
const (
	NamespaceSortName = "NAME"
)

Variables

View Source
var (
	ErrInvalidLengthEntityConfig        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowEntityConfig          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupEntityConfig = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthEntityState        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowEntityState          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupEntityState = fmt.Errorf("proto: unexpected end of group")
)

Functions

func MergeMapWithPrefix added in v3.8.0

func MergeMapWithPrefix(a map[string]string, b map[string]string, prefix string)

MergeMapWithPrefix merges contents of one map into another using a prefix.

func ResolveRawResource

func ResolveRawResource(name string) (interface{}, error)

ResolveRawResource is like ResolveResource, but uses interface{} instead of Resource as a return type.

func ResolveV2Resource

func ResolveV2Resource(name string) (corev2.Resource, error)

ResolveV2Resource resolves the resources in this package to core/v2.Resource types, via the V2ResourceProxy type.

func V2EntityToV3

func V2EntityToV3(e *corev2.Entity) (*EntityConfig, *EntityState)

V2EntityToV3 converts a corev2.Entity to an EntityConfig and EntityState. The resulting values will contain pointers to e's memory.

func V3EntityToV2

func V3EntityToV2(cfg *EntityConfig, state *EntityState) (*corev2.Entity, error)

V3EntityToV2 converts an EntityConfig and an EntityState to a corev2.Entity. Errors are returned if cfg and state's Metadata are nil or not equal in terms of their namespace and name. The resulting object will contain pointers to cfg's and state's memory, and its metadata is carried over from the config.

func V3NamespaceToV2 added in v3.7.0

func V3NamespaceToV2(n *Namespace) *corev2.Namespace

func V3ToV2Resource

func V3ToV2Resource(resource Resource) corev2.Resource

func ValidateGlobalMetadata added in v3.7.0

func ValidateGlobalMetadata(meta *corev2.ObjectMeta) error

func ValidateMetadata

func ValidateMetadata(meta *corev2.ObjectMeta) error

Types

type ClusterConfig added in v3.7.0

type ClusterConfig struct {
	Metadata *corev2.ObjectMeta
}

func (*ClusterConfig) GetMetadata added in v3.7.0

func (c *ClusterConfig) GetMetadata() *corev2.ObjectMeta

func (*ClusterConfig) GetTypeMeta added in v3.7.0

func (c *ClusterConfig) GetTypeMeta() corev2.TypeMeta

GetTypeMeta gets the type metadata for a ClusterConfig.

func (*ClusterConfig) RBACName added in v3.7.0

func (c *ClusterConfig) RBACName() string

RBACName returns the RBAC name for ClusterConfig. It will be overridden if there is a method for ClusterConfig called "rbacName".

func (*ClusterConfig) SetMetadata added in v3.7.0

func (c *ClusterConfig) SetMetadata(meta *corev2.ObjectMeta)

SetMetadata sets the provided metadata on the type. If the type does not have any metadata, nothing will happen.

func (*ClusterConfig) StoreName added in v3.7.0

func (c *ClusterConfig) StoreName() string

StoreName returns the store name for ClusterConfig. It will be overridden if there is a method for ClusterConfig called "storeName".

func (*ClusterConfig) URIPath added in v3.7.0

func (c *ClusterConfig) URIPath() string

URIPath returns the URI path for ClusterConfig. It will be overridden if there is a method for ClusterConfig called uriPath.

func (*ClusterConfig) UnmarshalJSON added in v3.7.0

func (c *ClusterConfig) UnmarshalJSON(msg []byte) error

UnmarshalJSON is provided in order to ensure that metadata labels and annotations are never nil.

func (*ClusterConfig) Validate added in v3.7.0

func (c *ClusterConfig) Validate() error

Validate validates the ClusterConfig. If the ClusterConfig has metadata, it will be validated via ValidateMetadata. If there is a method for ClusterConfig called validate, then it will be used to cooperatively validate the ClusterConfig.

type Deregistration

type Deregistration = corev2.Deregistration

type EntityConfig

type EntityConfig struct {
	// Metadata contains the name, namespace, labels and annotations of the
	// entity.
	Metadata *v2.ObjectMeta `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata"`
	// EntityClass represents the class of the entity. It can be "agent",
	// "proxy", or "backend".
	EntityClass string `protobuf:"bytes,2,opt,name=entity_class,json=entityClass,proto3" json:"entity_class"`
	// User is the username the entity is connecting as, if the entity is an
	// agent entity.
	User string `protobuf:"bytes,3,opt,name=user,proto3" json:"user,omitempty"`
	// Subscriptions are a weak relationship between entities and checks. The
	// scheduler uses subscriptions to make entities to checks when scheduling.
	Subscriptions []string `protobuf:"bytes,4,rep,name=subscriptions,proto3" json:"subscriptions"`
	// Deregister, if true, will result in the entity being deleted when the
	// entity is an agent, and the agent disconnects its session.
	Deregister bool `protobuf:"varint,5,opt,name=deregister,proto3" json:"deregister"`
	// Deregistration contains configuration for Sensu entity de-registration.
	Deregistration v2.Deregistration `protobuf:"bytes,6,opt,name=deregistration,proto3" json:"deregistration"`
	// KeepaliveHandlers contains a list of handlers to use for the entity's
	// keepalive events.
	KeepaliveHandlers []string `protobuf:"bytes,7,rep,name=keepalive_handlers,json=keepaliveHandlers,proto3" json:"keepalive_handlers,omitempty"`
	// Redact contains the fields to redact on the entity, if the entity is an]
	// agent entity.
	Redact               []string `protobuf:"bytes,8,rep,name=redact,proto3" json:"redact,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

EntityConfig represents entity configuration.

func FixtureEntityConfig

func FixtureEntityConfig(name string) *EntityConfig

func NewEntityConfig

func NewEntityConfig(namespace, name string) *EntityConfig

NewEntityConfig creates a new EntityConfig.

func NewPopulatedEntityConfig

func NewPopulatedEntityConfig(r randyEntityConfig, easy bool) *EntityConfig

func (*EntityConfig) Descriptor

func (*EntityConfig) Descriptor() ([]byte, []int)

func (*EntityConfig) Equal

func (this *EntityConfig) Equal(that interface{}) bool

func (*EntityConfig) Fields added in v3.8.0

func (e *EntityConfig) Fields() map[string]string

func (*EntityConfig) GetDeregister

func (m *EntityConfig) GetDeregister() bool

func (*EntityConfig) GetDeregistration

func (m *EntityConfig) GetDeregistration() v2.Deregistration

func (*EntityConfig) GetEntityClass

func (m *EntityConfig) GetEntityClass() string

func (*EntityConfig) GetKeepaliveHandlers

func (m *EntityConfig) GetKeepaliveHandlers() []string

func (*EntityConfig) GetMetadata

func (m *EntityConfig) GetMetadata() *v2.ObjectMeta

func (*EntityConfig) GetRedact

func (m *EntityConfig) GetRedact() []string

func (*EntityConfig) GetSubscriptions

func (m *EntityConfig) GetSubscriptions() []string

func (*EntityConfig) GetTypeMeta

func (e *EntityConfig) GetTypeMeta() corev2.TypeMeta

GetTypeMeta gets the type metadata for a EntityConfig.

func (*EntityConfig) GetUser

func (m *EntityConfig) GetUser() string

func (*EntityConfig) Marshal

func (m *EntityConfig) Marshal() (dAtA []byte, err error)

func (*EntityConfig) MarshalTo

func (m *EntityConfig) MarshalTo(dAtA []byte) (int, error)

func (*EntityConfig) MarshalToSizedBuffer

func (m *EntityConfig) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*EntityConfig) ProduceRedacted added in v3.8.0

func (e *EntityConfig) ProduceRedacted() Resource

ProduceRedacted redacts the entity according to the entity's Redact fields. A redacted copy is returned. The copy contains pointers to the original's memory, with different Labels and Annotations.

func (*EntityConfig) ProtoMessage

func (*EntityConfig) ProtoMessage()

func (*EntityConfig) RBACName

func (e *EntityConfig) RBACName() string

RBACName returns the RBAC name for EntityConfig. It will be overridden if there is a method for EntityConfig called "rbacName".

func (*EntityConfig) Reset

func (m *EntityConfig) Reset()

func (*EntityConfig) SetMetadata

func (e *EntityConfig) SetMetadata(meta *corev2.ObjectMeta)

SetMetadata sets the provided metadata on the type. If the type does not have any metadata, nothing will happen.

func (*EntityConfig) Size

func (m *EntityConfig) Size() (n int)

func (*EntityConfig) StoreName

func (e *EntityConfig) StoreName() string

StoreName returns the store name for EntityConfig. It will be overridden if there is a method for EntityConfig called "storeName".

func (*EntityConfig) String

func (m *EntityConfig) String() string

func (*EntityConfig) URIPath

func (e *EntityConfig) URIPath() string

URIPath returns the URI path for EntityConfig. It will be overridden if there is a method for EntityConfig called uriPath.

func (*EntityConfig) Unmarshal

func (m *EntityConfig) Unmarshal(dAtA []byte) error

func (*EntityConfig) UnmarshalJSON

func (e *EntityConfig) UnmarshalJSON(msg []byte) error

UnmarshalJSON is provided in order to ensure that metadata labels and annotations are never nil.

func (*EntityConfig) Validate

func (e *EntityConfig) Validate() error

Validate validates the EntityConfig. If the EntityConfig has metadata, it will be validated via ValidateMetadata. If there is a method for EntityConfig called validate, then it will be used to cooperatively validate the EntityConfig.

func (*EntityConfig) XXX_DiscardUnknown

func (m *EntityConfig) XXX_DiscardUnknown()

func (*EntityConfig) XXX_Marshal

func (m *EntityConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EntityConfig) XXX_Merge

func (m *EntityConfig) XXX_Merge(src proto.Message)

func (*EntityConfig) XXX_Size

func (m *EntityConfig) XXX_Size() int

func (*EntityConfig) XXX_Unmarshal

func (m *EntityConfig) XXX_Unmarshal(b []byte) error

type EntityState

type EntityState struct {
	// Metadata contains the name, namespace, labels and annotations of the
	// entity.
	Metadata *v2.ObjectMeta `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata"`
	// System contains information about the system that the Agent process
	// is running on, used for additional Entity context.
	System v2.System `protobuf:"bytes,2,opt,name=system,proto3" json:"system"`
	// LastSeen is a unix timestamp that represents when the entity was last
	// observed by the keepalive system.
	LastSeen int64 `protobuf:"varint,3,opt,name=last_seen,json=lastSeen,proto3" json:"last_seen"`
	// SensuAgentVersion is the sensu-agent version.
	SensuAgentVersion    string   `protobuf:"bytes,4,opt,name=sensu_agent_version,json=sensuAgentVersion,proto3" json:"sensu_agent_version"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

EntityState represents entity state. Unlike configuration, state is typically only maintained for agent entities, although it can be maintained for proxy entities in certain circumstances.

func FixtureEntityState

func FixtureEntityState(name string) *EntityState

func NewEntityState

func NewEntityState(namespace, name string) *EntityState

NewEntityState creates a new EntityState.

func NewPopulatedEntityState

func NewPopulatedEntityState(r randyEntityState, easy bool) *EntityState

func (*EntityState) Descriptor

func (*EntityState) Descriptor() ([]byte, []int)

func (*EntityState) Equal

func (this *EntityState) Equal(that interface{}) bool

func (*EntityState) Fields added in v3.8.0

func (e *EntityState) Fields() map[string]string

func (*EntityState) GetLastSeen

func (m *EntityState) GetLastSeen() int64

func (*EntityState) GetMetadata

func (m *EntityState) GetMetadata() *v2.ObjectMeta

func (*EntityState) GetSensuAgentVersion

func (m *EntityState) GetSensuAgentVersion() string

func (*EntityState) GetSystem

func (m *EntityState) GetSystem() v2.System

func (*EntityState) GetTypeMeta

func (e *EntityState) GetTypeMeta() corev2.TypeMeta

GetTypeMeta gets the type metadata for a EntityState.

func (*EntityState) Marshal

func (m *EntityState) Marshal() (dAtA []byte, err error)

func (*EntityState) MarshalTo

func (m *EntityState) MarshalTo(dAtA []byte) (int, error)

func (*EntityState) MarshalToSizedBuffer

func (m *EntityState) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*EntityState) ProtoMessage

func (*EntityState) ProtoMessage()

func (*EntityState) RBACName

func (e *EntityState) RBACName() string

RBACName returns the RBAC name for EntityState. It will be overridden if there is a method for EntityState called "rbacName".

func (*EntityState) Reset

func (m *EntityState) Reset()

func (*EntityState) SetMetadata

func (e *EntityState) SetMetadata(meta *corev2.ObjectMeta)

SetMetadata sets the provided metadata on the type. If the type does not have any metadata, nothing will happen.

func (*EntityState) Size

func (m *EntityState) Size() (n int)

func (*EntityState) StoreName

func (e *EntityState) StoreName() string

StoreName returns the store name for EntityState. It will be overridden if there is a method for EntityState called "storeName".

func (*EntityState) String

func (m *EntityState) String() string

func (*EntityState) URIPath

func (e *EntityState) URIPath() string

URIPath returns the URI path for EntityState. It will be overridden if there is a method for EntityState called uriPath.

func (*EntityState) Unmarshal

func (m *EntityState) Unmarshal(dAtA []byte) error

func (*EntityState) UnmarshalJSON

func (e *EntityState) UnmarshalJSON(msg []byte) error

UnmarshalJSON is provided in order to ensure that metadata labels and annotations are never nil.

func (*EntityState) Validate

func (e *EntityState) Validate() error

Validate validates the EntityState. If the EntityState has metadata, it will be validated via ValidateMetadata. If there is a method for EntityState called validate, then it will be used to cooperatively validate the EntityState.

func (*EntityState) XXX_DiscardUnknown

func (m *EntityState) XXX_DiscardUnknown()

func (*EntityState) XXX_Marshal

func (m *EntityState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EntityState) XXX_Merge

func (m *EntityState) XXX_Merge(src proto.Message)

func (*EntityState) XXX_Size

func (m *EntityState) XXX_Size() int

func (*EntityState) XXX_Unmarshal

func (m *EntityState) XXX_Unmarshal(b []byte) error

type Fielder added in v3.8.0

type Fielder interface {
	// Fields returns a set of fields that represent the resource.
	Fields() map[string]string
}

Fielder includes a set of fields that represent a resource.

type GeneratedType

type GeneratedType interface {
	// SetMetadata sets metadata on its receiver, if the receiver has metadata
	// to set. If the receiver does not have metadata to set, nothing happens.
	SetMetadata(*corev2.ObjectMeta)

	// StoreName gives the name of the resource as it pertains to a store.
	StoreName() string

	// RBACName describes the name of the resource for RBAC purposes.
	RBACName() string

	// URIPath gives the path to the resource, e.g. /checks/checkname
	URIPath() string

	// Validate checks if the fields in the resource are valid.
	Validate() error
}

GeneratedType is an interface that specifies all the methods that are automatically generated.

type GlobalResource added in v3.6.2

type GlobalResource interface {
	// IsGlobalResource returns true when the resource
	// is not namespaced.
	IsGlobalResource() bool
}

GlobalResource is an interface for indicating a resource's namespace strategy

type Namespace added in v3.7.0

type Namespace struct {
	Metadata *corev2.ObjectMeta `json:"metadata"`
}

Namespace resource contains standard resource object metadata for a given namespace.

func FixtureNamespace added in v3.7.0

func FixtureNamespace(name string) *Namespace

func NewNamespace added in v3.7.0

func NewNamespace(name string) *Namespace

func V2NamespaceToV3 added in v3.7.0

func V2NamespaceToV3(n *corev2.Namespace) *Namespace

func (*Namespace) GetMetadata added in v3.7.0

func (n *Namespace) GetMetadata() *corev2.ObjectMeta

func (*Namespace) GetTypeMeta added in v3.7.0

func (n *Namespace) GetTypeMeta() corev2.TypeMeta

GetTypeMeta gets the type metadata for a Namespace.

func (*Namespace) IsGlobalResource added in v3.7.0

func (n *Namespace) IsGlobalResource() bool

func (*Namespace) RBACName added in v3.7.0

func (n *Namespace) RBACName() string

RBACName returns the RBAC name for Namespace. It will be overridden if there is a method for Namespace called "rbacName".

func (*Namespace) SetMetadata added in v3.7.0

func (n *Namespace) SetMetadata(meta *corev2.ObjectMeta)

SetMetadata sets the provided metadata on the type. If the type does not have any metadata, nothing will happen.

func (*Namespace) StoreName added in v3.7.0

func (n *Namespace) StoreName() string

StoreName returns the store name for Namespace. It will be overridden if there is a method for Namespace called "storeName".

func (*Namespace) URIPath added in v3.7.0

func (n *Namespace) URIPath() string

URIPath returns the URI path for Namespace. It will be overridden if there is a method for Namespace called uriPath.

func (*Namespace) UnmarshalJSON added in v3.7.0

func (n *Namespace) UnmarshalJSON(msg []byte) error

UnmarshalJSON is provided in order to ensure that metadata labels and annotations are never nil.

func (*Namespace) Validate added in v3.7.0

func (n *Namespace) Validate() error

Validate validates the Namespace. If the Namespace has metadata, it will be validated via ValidateMetadata. If there is a method for Namespace called validate, then it will be used to cooperatively validate the Namespace.

type Network

type Network = corev2.Network

type NetworkInterface

type NetworkInterface = corev2.NetworkInterface

type Process

type Process = corev2.Process

type Redacter added in v3.8.0

type Redacter interface {
	// ProduceRedacted returns a redacted copy of the resource
	ProduceRedacted() Resource
}

Redacter can return a redacted copy of the resource

type Resource

type Resource interface {
	// GetMetadata returns the object metadata for the resource.
	GetMetadata() *corev2.ObjectMeta
	GeneratedType
}

Resource represents a Sensu resource.

func ListResources

func ListResources() []Resource

ListResources lists all of the resources in the package.

func ResolveResource

func ResolveResource(name string) (Resource, error)

ResolveResource returns a zero-valued resource, given a name. If the named type does not exist, or if the type is not a Resource, then an error will be returned.

func ResolveResourceByRBACName

func ResolveResourceByRBACName(name string) (Resource, error)

ResolveResourceByRBACName resolves a resource by its RBAC name.

func ResolveResourceByStoreName

func ResolveResourceByStoreName(name string) (Resource, error)

ResolveResourceByStoreName resolves a resource by its store name.

type ResourceTemplate added in v3.3.0

type ResourceTemplate struct {
	Metadata   *corev2.ObjectMeta `json:"metadata"`
	APIVersion string             `json:"api_version"`
	Type       string             `json:"type"`
	Template   string             `json:"template"`
}

ResourceTemplate is a template for core/v3 resources.

func (*ResourceTemplate) Execute added in v3.3.0

func (r *ResourceTemplate) Execute(meta *corev2.ObjectMeta) (Resource, error)

Execute executes the Template in the ResourceTemplate. It's given a metadata object to draw variables from. Typically, templating will be done with a variable namespace or name, but could also be done with labels and annotations from the metadata, depending on the nature of the template.

func (*ResourceTemplate) GetMetadata added in v3.3.0

func (r *ResourceTemplate) GetMetadata() *corev2.ObjectMeta

func (*ResourceTemplate) GetTypeMeta added in v3.3.0

func (r *ResourceTemplate) GetTypeMeta() corev2.TypeMeta

GetTypeMeta gets the type metadata for a ResourceTemplate.

func (*ResourceTemplate) RBACName added in v3.3.0

func (r *ResourceTemplate) RBACName() string

RBACName returns the RBAC name for ResourceTemplate. It will be overridden if there is a method for ResourceTemplate called "rbacName".

func (*ResourceTemplate) SetMetadata added in v3.3.0

func (r *ResourceTemplate) SetMetadata(meta *corev2.ObjectMeta)

SetMetadata sets the provided metadata on the type. If the type does not have any metadata, nothing will happen.

func (*ResourceTemplate) StoreName added in v3.3.0

func (r *ResourceTemplate) StoreName() string

StoreName returns the store name for ResourceTemplate. It will be overridden if there is a method for ResourceTemplate called "storeName".

func (*ResourceTemplate) URIPath added in v3.3.0

func (r *ResourceTemplate) URIPath() string

URIPath returns the URI path for ResourceTemplate. It will be overridden if there is a method for ResourceTemplate called uriPath.

func (*ResourceTemplate) UnmarshalJSON added in v3.3.0

func (r *ResourceTemplate) UnmarshalJSON(msg []byte) error

UnmarshalJSON is provided in order to ensure that metadata labels and annotations are never nil.

func (*ResourceTemplate) Validate added in v3.3.0

func (r *ResourceTemplate) Validate() error

Validate validates the ResourceTemplate. If the ResourceTemplate has metadata, it will be validated via ValidateMetadata. If there is a method for ResourceTemplate called validate, then it will be used to cooperatively validate the ResourceTemplate.

type SymmetricKey added in v3.7.0

type SymmetricKey struct {
	Metadata *corev2.ObjectMeta `json:"metadata"`
	Value    []byte             `json:"value"`
}

func (*SymmetricKey) GetMetadata added in v3.7.0

func (s *SymmetricKey) GetMetadata() *corev2.ObjectMeta

func (*SymmetricKey) GetTypeMeta added in v3.7.0

func (s *SymmetricKey) GetTypeMeta() corev2.TypeMeta

GetTypeMeta gets the type metadata for a SymmetricKey.

func (*SymmetricKey) RBACName added in v3.7.0

func (s *SymmetricKey) RBACName() string

RBACName returns the RBAC name for SymmetricKey. It will be overridden if there is a method for SymmetricKey called "rbacName".

func (*SymmetricKey) SetMetadata added in v3.7.0

func (s *SymmetricKey) SetMetadata(meta *corev2.ObjectMeta)

SetMetadata sets the provided metadata on the type. If the type does not have any metadata, nothing will happen.

func (*SymmetricKey) StoreName added in v3.7.0

func (s *SymmetricKey) StoreName() string

StoreName returns the store name for SymmetricKey. It will be overridden if there is a method for SymmetricKey called "storeName".

func (*SymmetricKey) URIPath added in v3.7.0

func (s *SymmetricKey) URIPath() string

URIPath returns the URI path for SymmetricKey. It will be overridden if there is a method for SymmetricKey called uriPath.

func (*SymmetricKey) UnmarshalJSON added in v3.7.0

func (s *SymmetricKey) UnmarshalJSON(msg []byte) error

UnmarshalJSON is provided in order to ensure that metadata labels and annotations are never nil.

func (*SymmetricKey) Validate added in v3.7.0

func (s *SymmetricKey) Validate() error

Validate validates the SymmetricKey. If the SymmetricKey has metadata, it will be validated via ValidateMetadata. If there is a method for SymmetricKey called validate, then it will be used to cooperatively validate the SymmetricKey.

type System

type System = corev2.System

type V2ResourceProxy

type V2ResourceProxy struct {
	Resource
}

V2ResourceProxy is a compatibility shim for converting from a v3 resource to a v2 resource.

func (*V2ResourceProxy) GetObjectMeta

func (v *V2ResourceProxy) GetObjectMeta() corev2.ObjectMeta

func (V2ResourceProxy) GetTypeMeta added in v3.1.0

func (v V2ResourceProxy) GetTypeMeta() corev2.TypeMeta

func (V2ResourceProxy) MarshalJSON added in v3.1.0

func (v V2ResourceProxy) MarshalJSON() ([]byte, error)

func (*V2ResourceProxy) SetNamespace

func (v *V2ResourceProxy) SetNamespace(ns string)

func (*V2ResourceProxy) SetObjectMeta

func (v *V2ResourceProxy) SetObjectMeta(meta corev2.ObjectMeta)

func (*V2ResourceProxy) StorePrefix

func (v *V2ResourceProxy) StorePrefix() string

func (*V2ResourceProxy) UnmarshalJSON added in v3.1.0

func (v *V2ResourceProxy) UnmarshalJSON(b []byte) error

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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