receiver_api

package
v0.0.0-...-5e4c18c Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2025 License: Apache-2.0 Imports: 22 Imported by: 0

README

Go API client for receiver_api

This API documentation page describes the SUSE Observability receiver API.

Overview

This API client was generated by the OpenAPI Generator project. By using the OpenAPI-spec from a remote server, you can easily generate an API client.

  • API version: 5.2.0
  • Package version: 1.0.0
  • Build package: org.openapitools.codegen.languages.GoClientCodegen For more information, please visit https://stackstate.com

Installation

Install the following dependencies:

go get github.com/stretchr/testify/assert
go get golang.org/x/oauth2
go get golang.org/x/net/context

Put the package under your project folder and add the following in import:

import receiver_api "github.com/StackVista/stackstate-receiver-go-client"

To use a proxy, set the environment variable HTTP_PROXY:

os.Setenv("HTTP_PROXY", "http://proxy_name:proxy_port")

Configuration of Server URL

Default configuration comes with Servers field that contains server objects as defined in the OpenAPI specification.

Select Server Configuration

For using other server than the one defined on index 0 set context value sw.ContextServerIndex of type int.

ctx := context.WithValue(context.Background(), receiver_api.ContextServerIndex, 1)
Templated Server URL

Templated server URL is formatted using default variables from configuration or from context value sw.ContextServerVariables of type map[string]string.

ctx := context.WithValue(context.Background(), receiver_api.ContextServerVariables, map[string]string{
	"basePath": "v2",
})

Note, enum values are always validated and all unused variables are silently ignored.

URLs Configuration per Operation

Each operation can use different server URL defined using OperationServers map in the Configuration. An operation is uniquely identified by "{classname}Service.{nickname}" string. Similar rules for overriding default operation server index and variables applies by using sw.ContextOperationServerIndices and sw.ContextOperationServerVariables context maps.

ctx := context.WithValue(context.Background(), receiver_api.ContextOperationServerIndices, map[string]int{
	"{classname}Service.{nickname}": 2,
})
ctx = context.WithValue(context.Background(), receiver_api.ContextOperationServerVariables, map[string]map[string]string{
	"{classname}Service.{nickname}": {
		"port": "8443",
	},
})

Documentation for API Endpoints

All URIs are relative to http://localhost

Class Method HTTP request Description
FeaturesAPI GetFeatures Get /stsAgent/features Get supported features from the receiver
ReceiverRbacInstanceAPI IngestInstanceRBAC Post /stsAgent/rbac/instance Create instance RBAC objects
ReceiverRbacScopeAPI IngestScopeRBAC Post /stsAgent/rbac/scope Create scope RBAC objects

Documentation For Models

Documentation For Authorization

Endpoints do not require authorization.

Documentation for Utility Methods

Due to the fact that model structure members are all pointers, this package contains a number of utility functions to easily obtain pointers to values of basic types. Each of these functions takes a value of the given basic type and returns a pointer to it:

  • PtrBool
  • PtrInt
  • PtrInt32
  • PtrInt64
  • PtrFloat
  • PtrFloat32
  • PtrFloat64
  • PtrString
  • PtrTime

Author

info@stackstate.com

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ContextOAuth2 takes an oauth2.TokenSource as authentication for the request.
	ContextOAuth2 = contextKey("token")

	// ContextBasicAuth takes BasicAuth as authentication for the request.
	ContextBasicAuth = contextKey("basic")

	// ContextAccessToken takes a string oauth2 access token as authentication for the request.
	ContextAccessToken = contextKey("accesstoken")

	// ContextAPIKeys takes a string apikey as authentication for the request
	ContextAPIKeys = contextKey("apiKeys")

	// ContextHttpSignatureAuth takes HttpSignatureAuth as authentication for the request.
	ContextHttpSignatureAuth = contextKey("httpsignature")

	// ContextServerIndex uses a server configuration from the index.
	ContextServerIndex = contextKey("serverIndex")

	// ContextOperationServerIndices uses a server configuration from the index mapping.
	ContextOperationServerIndices = contextKey("serverOperationIndices")

	// ContextServerVariables overrides a server configuration variables.
	ContextServerVariables = contextKey("serverVariables")

	// ContextOperationServerVariables overrides a server configuration variables using operation specific values.
	ContextOperationServerVariables = contextKey("serverOperationVariables")
)

Functions

func CacheExpires

func CacheExpires(r *http.Response) time.Time

CacheExpires helper function to determine remaining time before repeating a request.

func PtrBool

func PtrBool(v bool) *bool

PtrBool is a helper routine that returns a pointer to given boolean value.

func PtrFloat32

func PtrFloat32(v float32) *float32

PtrFloat32 is a helper routine that returns a pointer to given float value.

func PtrFloat64

func PtrFloat64(v float64) *float64

PtrFloat64 is a helper routine that returns a pointer to given float value.

func PtrInt

func PtrInt(v int) *int

PtrInt is a helper routine that returns a pointer to given integer value.

func PtrInt32

func PtrInt32(v int32) *int32

PtrInt32 is a helper routine that returns a pointer to given integer value.

func PtrInt64

func PtrInt64(v int64) *int64

PtrInt64 is a helper routine that returns a pointer to given integer value.

func PtrString

func PtrString(v string) *string

PtrString is a helper routine that returns a pointer to given string value.

func PtrTime

func PtrTime(v time.Time) *time.Time

PtrTime is helper routine that returns a pointer to given Time value.

Types

type APIClient

type APIClient struct {
	FeaturesAPI FeaturesAPI

	ReceiverRbacInstanceAPI ReceiverRbacInstanceAPI

	ReceiverRbacScopeAPI ReceiverRbacScopeAPI
	// contains filtered or unexported fields
}

APIClient manages communication with the SUSE Observability Receiver API API v5.2.0 In most cases there should be only one, shared, APIClient.

func NewAPIClient

func NewAPIClient(cfg *Configuration) *APIClient

NewAPIClient creates a new API client. Requires a userAgent string describing your application. optionally a custom http.Client to allow for advanced features such as caching.

func (*APIClient) GetConfig

func (c *APIClient) GetConfig() *Configuration

Allow modification of underlying config for alternate implementations and testing Caution: modifying the configuration while live can cause data races and potentially unwanted behavior

type APIKey

type APIKey struct {
	Key    string
	Prefix string
}

APIKey provides API key based authentication to a request passed via context using ContextAPIKey

type APIResponse

type APIResponse struct {
	*http.Response `json:"-"`
	Message        string `json:"message,omitempty"`
	// Operation is the name of the OpenAPI operation.
	Operation string `json:"operation,omitempty"`
	// RequestURL is the request URL. This value is always available, even if the
	// embedded *http.Response is nil.
	RequestURL string `json:"url,omitempty"`
	// Method is the HTTP method used for the request.  This value is always
	// available, even if the embedded *http.Response is nil.
	Method string `json:"method,omitempty"`
	// Payload holds the contents of the response body (which may be nil or empty).
	// This is provided here as the raw response.Body() reader will have already
	// been drained.
	Payload []byte `json:"-"`
}

APIResponse stores the API response returned by the server.

func NewAPIResponse

func NewAPIResponse(r *http.Response) *APIResponse

NewAPIResponse returns a new APIResponse object.

func NewAPIResponseWithError

func NewAPIResponseWithError(errorMessage string) *APIResponse

NewAPIResponseWithError returns a new APIResponse object with the provided error message.

type AggregationRule

type AggregationRule struct {
	// ClusterRoleSelectors holds a list of selectors which will be used to find ClusterRoles and create the rules. If any of the selectors match, then the ClusterRole's permissions will be added.
	ClusterRoleSelectors []LabelSelector `json:"clusterRoleSelectors,omitempty"`
}

AggregationRule AggregationRule describes how to locate ClusterRoles to aggregate into the ClusterRole.

func NewAggregationRule

func NewAggregationRule() *AggregationRule

NewAggregationRule instantiates a new AggregationRule object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewAggregationRuleWithDefaults

func NewAggregationRuleWithDefaults() *AggregationRule

NewAggregationRuleWithDefaults instantiates a new AggregationRule object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*AggregationRule) GetClusterRoleSelectors

func (o *AggregationRule) GetClusterRoleSelectors() []LabelSelector

GetClusterRoleSelectors returns the ClusterRoleSelectors field value if set, zero value otherwise.

func (*AggregationRule) GetClusterRoleSelectorsOk

func (o *AggregationRule) GetClusterRoleSelectorsOk() ([]LabelSelector, bool)

GetClusterRoleSelectorsOk returns a tuple with the ClusterRoleSelectors field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AggregationRule) HasClusterRoleSelectors

func (o *AggregationRule) HasClusterRoleSelectors() bool

HasClusterRoleSelectors returns a boolean if a field has been set.

func (AggregationRule) MarshalJSON

func (o AggregationRule) MarshalJSON() ([]byte, error)

func (*AggregationRule) SetClusterRoleSelectors

func (o *AggregationRule) SetClusterRoleSelectors(v []LabelSelector)

SetClusterRoleSelectors gets a reference to the given []LabelSelector and assigns it to the ClusterRoleSelectors field.

type ApiGetFeaturesRequest

type ApiGetFeaturesRequest struct {
	ApiService FeaturesAPI
	// contains filtered or unexported fields
}

func (ApiGetFeaturesRequest) Execute

func (r ApiGetFeaturesRequest) Execute() (map[string]interface{}, *http.Response, error)

type ApiIngestInstanceRBACRequest

type ApiIngestInstanceRBACRequest struct {
	ApiService ReceiverRbacInstanceAPI
	// contains filtered or unexported fields
}

func (ApiIngestInstanceRBACRequest) Execute

func (ApiIngestInstanceRBACRequest) RBACRequest

type ApiIngestScopeRBACRequest

type ApiIngestScopeRBACRequest struct {
	ApiService ReceiverRbacScopeAPI
	// contains filtered or unexported fields
}

func (ApiIngestScopeRBACRequest) Execute

func (r ApiIngestScopeRBACRequest) Execute() (*http.Response, error)

func (ApiIngestScopeRBACRequest) RBACRequest

type BasicAuth

type BasicAuth struct {
	UserName string `json:"userName,omitempty"`
	Password string `json:"password,omitempty"`
}

BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth

type ClusterRole

type ClusterRole struct {
	// Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated.
	Kind            string           `json:"kind"`
	Metadata        ObjectMeta       `json:"metadata"`
	AggregationRule *AggregationRule `json:"aggregationRule,omitempty"`
	// Rules holds all the PolicyRules for this ClusterRole.
	Rules []PolicyRule `json:"rules,omitempty"`
}

ClusterRole ClusterRole is a cluster level, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding or ClusterRoleBinding.

func NewClusterRole

func NewClusterRole(kind string, metadata ObjectMeta) *ClusterRole

NewClusterRole instantiates a new ClusterRole object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewClusterRoleWithDefaults

func NewClusterRoleWithDefaults() *ClusterRole

NewClusterRoleWithDefaults instantiates a new ClusterRole object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ClusterRole) GetAggregationRule

func (o *ClusterRole) GetAggregationRule() AggregationRule

GetAggregationRule returns the AggregationRule field value if set, zero value otherwise.

func (*ClusterRole) GetAggregationRuleOk

func (o *ClusterRole) GetAggregationRuleOk() (*AggregationRule, bool)

GetAggregationRuleOk returns a tuple with the AggregationRule field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ClusterRole) GetKind

func (o *ClusterRole) GetKind() string

GetKind returns the Kind field value

func (*ClusterRole) GetKindOk

func (o *ClusterRole) GetKindOk() (*string, bool)

GetKindOk returns a tuple with the Kind field value and a boolean to check if the value has been set.

func (*ClusterRole) GetMetadata

func (o *ClusterRole) GetMetadata() ObjectMeta

GetMetadata returns the Metadata field value

func (*ClusterRole) GetMetadataOk

func (o *ClusterRole) GetMetadataOk() (*ObjectMeta, bool)

GetMetadataOk returns a tuple with the Metadata field value and a boolean to check if the value has been set.

func (*ClusterRole) GetRules

func (o *ClusterRole) GetRules() []PolicyRule

GetRules returns the Rules field value if set, zero value otherwise.

func (*ClusterRole) GetRulesOk

func (o *ClusterRole) GetRulesOk() ([]PolicyRule, bool)

GetRulesOk returns a tuple with the Rules field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ClusterRole) HasAggregationRule

func (o *ClusterRole) HasAggregationRule() bool

HasAggregationRule returns a boolean if a field has been set.

func (*ClusterRole) HasRules

func (o *ClusterRole) HasRules() bool

HasRules returns a boolean if a field has been set.

func (ClusterRole) MarshalJSON

func (o ClusterRole) MarshalJSON() ([]byte, error)

func (*ClusterRole) SetAggregationRule

func (o *ClusterRole) SetAggregationRule(v AggregationRule)

SetAggregationRule gets a reference to the given AggregationRule and assigns it to the AggregationRule field.

func (*ClusterRole) SetKind

func (o *ClusterRole) SetKind(v string)

SetKind sets field value

func (*ClusterRole) SetMetadata

func (o *ClusterRole) SetMetadata(v ObjectMeta)

SetMetadata sets field value

func (*ClusterRole) SetRules

func (o *ClusterRole) SetRules(v []PolicyRule)

SetRules gets a reference to the given []PolicyRule and assigns it to the Rules field.

type ClusterRoleBinding

type ClusterRoleBinding struct {
	// Kind is a string value representing the REST resource this object represents.
	Kind     string     `json:"kind"`
	Metadata ObjectMeta `json:"metadata"`
	RoleRef  RoleRef    `json:"roleRef"`
	// Subjects holds references to the objects the role applies to.
	Subjects []Subject `json:"subjects,omitempty"`
}

ClusterRoleBinding ClusterRoleBinding references a ClusterRole but does not contain it. It can reference a ClusterRole in the global namespace and adds subject information via the Subject field.

func NewClusterRoleBinding

func NewClusterRoleBinding(kind string, metadata ObjectMeta, roleRef RoleRef) *ClusterRoleBinding

NewClusterRoleBinding instantiates a new ClusterRoleBinding object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewClusterRoleBindingWithDefaults

func NewClusterRoleBindingWithDefaults() *ClusterRoleBinding

NewClusterRoleBindingWithDefaults instantiates a new ClusterRoleBinding object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ClusterRoleBinding) GetKind

func (o *ClusterRoleBinding) GetKind() string

GetKind returns the Kind field value

func (*ClusterRoleBinding) GetKindOk

func (o *ClusterRoleBinding) GetKindOk() (*string, bool)

GetKindOk returns a tuple with the Kind field value and a boolean to check if the value has been set.

func (*ClusterRoleBinding) GetMetadata

func (o *ClusterRoleBinding) GetMetadata() ObjectMeta

GetMetadata returns the Metadata field value

func (*ClusterRoleBinding) GetMetadataOk

func (o *ClusterRoleBinding) GetMetadataOk() (*ObjectMeta, bool)

GetMetadataOk returns a tuple with the Metadata field value and a boolean to check if the value has been set.

func (*ClusterRoleBinding) GetRoleRef

func (o *ClusterRoleBinding) GetRoleRef() RoleRef

GetRoleRef returns the RoleRef field value

func (*ClusterRoleBinding) GetRoleRefOk

func (o *ClusterRoleBinding) GetRoleRefOk() (*RoleRef, bool)

GetRoleRefOk returns a tuple with the RoleRef field value and a boolean to check if the value has been set.

func (*ClusterRoleBinding) GetSubjects

func (o *ClusterRoleBinding) GetSubjects() []Subject

GetSubjects returns the Subjects field value if set, zero value otherwise.

func (*ClusterRoleBinding) GetSubjectsOk

func (o *ClusterRoleBinding) GetSubjectsOk() ([]Subject, bool)

GetSubjectsOk returns a tuple with the Subjects field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ClusterRoleBinding) HasSubjects

func (o *ClusterRoleBinding) HasSubjects() bool

HasSubjects returns a boolean if a field has been set.

func (ClusterRoleBinding) MarshalJSON

func (o ClusterRoleBinding) MarshalJSON() ([]byte, error)

func (*ClusterRoleBinding) SetKind

func (o *ClusterRoleBinding) SetKind(v string)

SetKind sets field value

func (*ClusterRoleBinding) SetMetadata

func (o *ClusterRoleBinding) SetMetadata(v ObjectMeta)

SetMetadata sets field value

func (*ClusterRoleBinding) SetRoleRef

func (o *ClusterRoleBinding) SetRoleRef(v RoleRef)

SetRoleRef sets field value

func (*ClusterRoleBinding) SetSubjects

func (o *ClusterRoleBinding) SetSubjects(v []Subject)

SetSubjects gets a reference to the given []Subject and assigns it to the Subjects field.

type Configuration

type Configuration struct {
	Host             string            `json:"host,omitempty"`
	Scheme           string            `json:"scheme,omitempty"`
	DefaultHeader    map[string]string `json:"defaultHeader,omitempty"`
	UserAgent        string            `json:"userAgent,omitempty"`
	Debug            bool              `json:"debug,omitempty"`
	Servers          ServerConfigurations
	OperationServers map[string]ServerConfigurations
	HTTPClient       *http.Client
	OnPreCallAPI     func(*http.Request)
	OnPostCallAPI    func(*http.Request)
}

Configuration stores the configuration of the API client

func NewConfiguration

func NewConfiguration() *Configuration

NewConfiguration returns a new Configuration object

func (*Configuration) AddDefaultHeader

func (c *Configuration) AddDefaultHeader(key string, value string)

AddDefaultHeader adds a new HTTP header to the default header in the request

func (*Configuration) ServerURL

func (c *Configuration) ServerURL(index int, variables map[string]string) (string, error)

ServerURL returns URL based on server settings

func (*Configuration) ServerURLWithContext

func (c *Configuration) ServerURLWithContext(ctx context.Context, endpoint string) (string, error)

ServerURLWithContext returns a new server URL given an endpoint

type CreateRbacData

type CreateRbacData struct {
	Type     string   `json:"_type"`
	Resource RbacData `json:"resource"`
}

CreateRbacData Defines a RBAC resource that needs to be created

func NewCreateRbacData

func NewCreateRbacData(type_ string, resource RbacData) *CreateRbacData

NewCreateRbacData instantiates a new CreateRbacData object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewCreateRbacDataWithDefaults

func NewCreateRbacDataWithDefaults() *CreateRbacData

NewCreateRbacDataWithDefaults instantiates a new CreateRbacData object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*CreateRbacData) GetResource

func (o *CreateRbacData) GetResource() RbacData

GetResource returns the Resource field value

func (*CreateRbacData) GetResourceOk

func (o *CreateRbacData) GetResourceOk() (*RbacData, bool)

GetResourceOk returns a tuple with the Resource field value and a boolean to check if the value has been set.

func (*CreateRbacData) GetType

func (o *CreateRbacData) GetType() string

GetType returns the Type field value

func (*CreateRbacData) GetTypeOk

func (o *CreateRbacData) GetTypeOk() (*string, bool)

GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.

func (CreateRbacData) MarshalJSON

func (o CreateRbacData) MarshalJSON() ([]byte, error)

func (*CreateRbacData) SetResource

func (o *CreateRbacData) SetResource(v RbacData)

SetResource sets field value

func (*CreateRbacData) SetType

func (o *CreateRbacData) SetType(v string)

SetType sets field value

type DeleteRbacData

type DeleteRbacData struct {
	Type string `json:"_type"`
	// UID of the referent.
	Uid string `json:"uid"`
}

DeleteRbacData Defines a RBAC resource that needs to be delete

func NewDeleteRbacData

func NewDeleteRbacData(type_ string, uid string) *DeleteRbacData

NewDeleteRbacData instantiates a new DeleteRbacData object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewDeleteRbacDataWithDefaults

func NewDeleteRbacDataWithDefaults() *DeleteRbacData

NewDeleteRbacDataWithDefaults instantiates a new DeleteRbacData object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*DeleteRbacData) GetType

func (o *DeleteRbacData) GetType() string

GetType returns the Type field value

func (*DeleteRbacData) GetTypeOk

func (o *DeleteRbacData) GetTypeOk() (*string, bool)

GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.

func (*DeleteRbacData) GetUid

func (o *DeleteRbacData) GetUid() string

GetUid returns the Uid field value

func (*DeleteRbacData) GetUidOk

func (o *DeleteRbacData) GetUidOk() (*string, bool)

GetUidOk returns a tuple with the Uid field value and a boolean to check if the value has been set.

func (DeleteRbacData) MarshalJSON

func (o DeleteRbacData) MarshalJSON() ([]byte, error)

func (*DeleteRbacData) SetType

func (o *DeleteRbacData) SetType(v string)

SetType sets field value

func (*DeleteRbacData) SetUid

func (o *DeleteRbacData) SetUid(v string)

SetUid sets field value

type FeaturesAPI

type FeaturesAPI interface {

	/*
		GetFeatures Get supported features from the receiver

		Get supported features from the receiver.

		@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
		@return ApiGetFeaturesRequest
	*/
	GetFeatures(ctx context.Context) ApiGetFeaturesRequest

	// GetFeaturesExecute executes the request
	//  @return map[string]interface{}
	GetFeaturesExecute(r ApiGetFeaturesRequest) (map[string]interface{}, *http.Response, error)
}

type FeaturesAPIMock

type FeaturesAPIMock struct {
	GetFeaturesCalls    *[]GetFeaturesCall
	GetFeaturesResponse GetFeaturesMockResponse
}

func NewFeaturesAPIMock

func NewFeaturesAPIMock() FeaturesAPIMock

func (FeaturesAPIMock) GetFeatures

func (mock FeaturesAPIMock) GetFeatures(ctx context.Context) ApiGetFeaturesRequest

func (FeaturesAPIMock) GetFeaturesExecute

func (mock FeaturesAPIMock) GetFeaturesExecute(r ApiGetFeaturesRequest) (map[string]interface{}, *http.Response, error)

type FeaturesAPIService

type FeaturesAPIService service

FeaturesAPIService FeaturesAPI service

func (*FeaturesAPIService) GetFeatures

GetFeatures Get supported features from the receiver

Get supported features from the receiver.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiGetFeaturesRequest

func (*FeaturesAPIService) GetFeaturesExecute

func (a *FeaturesAPIService) GetFeaturesExecute(r ApiGetFeaturesRequest) (map[string]interface{}, *http.Response, error)

Execute executes the request

@return map[string]interface{}

type GenericOpenAPIError

type GenericOpenAPIError struct {
	// contains filtered or unexported fields
}

GenericOpenAPIError Provides access to the body, error and model on returned errors.

func (GenericOpenAPIError) Body

func (e GenericOpenAPIError) Body() []byte

Body returns the raw bytes of the response

func (GenericOpenAPIError) Error

func (e GenericOpenAPIError) Error() string

Error returns non-empty string if there was an error.

func (GenericOpenAPIError) Model

func (e GenericOpenAPIError) Model() interface{}

Model returns the unpacked model of the error

type GetFeaturesCall

type GetFeaturesCall struct {
}

type GetFeaturesMockResponse

type GetFeaturesMockResponse struct {
	Result   map[string]interface{}
	Response *http.Response
	Error    error
}

type IngestInstanceRBACCall

type IngestInstanceRBACCall struct {
	PrBACRequest *RBACRequest
}

type IngestInstanceRBACMockResponse

type IngestInstanceRBACMockResponse struct {
	Response *http.Response
	Error    error
}

type IngestScopeRBACCall

type IngestScopeRBACCall struct {
	PrBACRequest *RBACRequest
}

type IngestScopeRBACMockResponse

type IngestScopeRBACMockResponse struct {
	Response *http.Response
	Error    error
}

type LabelSelector

type LabelSelector struct {
	// matchExpressions is a list of label selector requirements. The requirements are ANDed.
	MatchExpressions []LabelSelectorRequirement `json:"matchExpressions,omitempty"`
	// matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is 'key', the operator is 'In', and the values array contains only 'value'. The requirements are ANDed.
	MatchLabels *map[string]string `json:"matchLabels,omitempty"`
}

LabelSelector A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects.

func NewLabelSelector

func NewLabelSelector() *LabelSelector

NewLabelSelector instantiates a new LabelSelector object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewLabelSelectorWithDefaults

func NewLabelSelectorWithDefaults() *LabelSelector

NewLabelSelectorWithDefaults instantiates a new LabelSelector object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*LabelSelector) GetMatchExpressions

func (o *LabelSelector) GetMatchExpressions() []LabelSelectorRequirement

GetMatchExpressions returns the MatchExpressions field value if set, zero value otherwise.

func (*LabelSelector) GetMatchExpressionsOk

func (o *LabelSelector) GetMatchExpressionsOk() ([]LabelSelectorRequirement, bool)

GetMatchExpressionsOk returns a tuple with the MatchExpressions field value if set, nil otherwise and a boolean to check if the value has been set.

func (*LabelSelector) GetMatchLabels

func (o *LabelSelector) GetMatchLabels() map[string]string

GetMatchLabels returns the MatchLabels field value if set, zero value otherwise.

func (*LabelSelector) GetMatchLabelsOk

func (o *LabelSelector) GetMatchLabelsOk() (*map[string]string, bool)

GetMatchLabelsOk returns a tuple with the MatchLabels field value if set, nil otherwise and a boolean to check if the value has been set.

func (*LabelSelector) HasMatchExpressions

func (o *LabelSelector) HasMatchExpressions() bool

HasMatchExpressions returns a boolean if a field has been set.

func (*LabelSelector) HasMatchLabels

func (o *LabelSelector) HasMatchLabels() bool

HasMatchLabels returns a boolean if a field has been set.

func (LabelSelector) MarshalJSON

func (o LabelSelector) MarshalJSON() ([]byte, error)

func (*LabelSelector) SetMatchExpressions

func (o *LabelSelector) SetMatchExpressions(v []LabelSelectorRequirement)

SetMatchExpressions gets a reference to the given []LabelSelectorRequirement and assigns it to the MatchExpressions field.

func (*LabelSelector) SetMatchLabels

func (o *LabelSelector) SetMatchLabels(v map[string]string)

SetMatchLabels gets a reference to the given map[string]string and assigns it to the MatchLabels field.

type LabelSelectorRequirement

type LabelSelectorRequirement struct {
	// key is the label key that the selector applies to.
	Key string `json:"key"`
	// operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.
	Operator string `json:"operator"`
	// values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.
	Values []string `json:"values,omitempty"`
}

LabelSelectorRequirement A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.

func NewLabelSelectorRequirement

func NewLabelSelectorRequirement(key string, operator string) *LabelSelectorRequirement

NewLabelSelectorRequirement instantiates a new LabelSelectorRequirement object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewLabelSelectorRequirementWithDefaults

func NewLabelSelectorRequirementWithDefaults() *LabelSelectorRequirement

NewLabelSelectorRequirementWithDefaults instantiates a new LabelSelectorRequirement object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*LabelSelectorRequirement) GetKey

func (o *LabelSelectorRequirement) GetKey() string

GetKey returns the Key field value

func (*LabelSelectorRequirement) GetKeyOk

func (o *LabelSelectorRequirement) GetKeyOk() (*string, bool)

GetKeyOk returns a tuple with the Key field value and a boolean to check if the value has been set.

func (*LabelSelectorRequirement) GetOperator

func (o *LabelSelectorRequirement) GetOperator() string

GetOperator returns the Operator field value

func (*LabelSelectorRequirement) GetOperatorOk

func (o *LabelSelectorRequirement) GetOperatorOk() (*string, bool)

GetOperatorOk returns a tuple with the Operator field value and a boolean to check if the value has been set.

func (*LabelSelectorRequirement) GetValues

func (o *LabelSelectorRequirement) GetValues() []string

GetValues returns the Values field value if set, zero value otherwise.

func (*LabelSelectorRequirement) GetValuesOk

func (o *LabelSelectorRequirement) GetValuesOk() ([]string, bool)

GetValuesOk returns a tuple with the Values field value if set, nil otherwise and a boolean to check if the value has been set.

func (*LabelSelectorRequirement) HasValues

func (o *LabelSelectorRequirement) HasValues() bool

HasValues returns a boolean if a field has been set.

func (LabelSelectorRequirement) MarshalJSON

func (o LabelSelectorRequirement) MarshalJSON() ([]byte, error)

func (*LabelSelectorRequirement) SetKey

func (o *LabelSelectorRequirement) SetKey(v string)

SetKey sets field value

func (*LabelSelectorRequirement) SetOperator

func (o *LabelSelectorRequirement) SetOperator(v string)

SetOperator sets field value

func (*LabelSelectorRequirement) SetValues

func (o *LabelSelectorRequirement) SetValues(v []string)

SetValues gets a reference to the given []string and assigns it to the Values field.

type ManagedFieldsEntry

type ManagedFieldsEntry struct {
	// APIVersion defines the version of this resource that this field set applies to. The format is \"group/version\" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted.
	ApiVersion *string `json:"apiVersion,omitempty"`
	// FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: \"FieldsV1\"
	FieldsType *string `json:"fieldsType,omitempty"`
	// Manager is an identifier of the workflow managing these fields.
	Manager *string `json:"manager,omitempty"`
	// Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'.
	Operation *string `json:"operation,omitempty"`
	// Subresource is the name of the subresource used to update that object, or empty string if the object was updated through the main resource. The value of this field is used to distinguish between managers, even if they share the same name. For example, a status update will be distinct from a regular update using the same manager name. Note that the APIVersion field is not related to the Subresource field and it always corresponds to the version of the main resource.
	Subresource *string `json:"subresource,omitempty"`
	// Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON.
	Time *time.Time `json:"time,omitempty"`
}

ManagedFieldsEntry ManagedFieldsEntry is a workflow-id, a FieldSet and the group version of the resource that the fieldset applies to.

func NewManagedFieldsEntry

func NewManagedFieldsEntry() *ManagedFieldsEntry

NewManagedFieldsEntry instantiates a new ManagedFieldsEntry object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewManagedFieldsEntryWithDefaults

func NewManagedFieldsEntryWithDefaults() *ManagedFieldsEntry

NewManagedFieldsEntryWithDefaults instantiates a new ManagedFieldsEntry object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ManagedFieldsEntry) GetApiVersion

func (o *ManagedFieldsEntry) GetApiVersion() string

GetApiVersion returns the ApiVersion field value if set, zero value otherwise.

func (*ManagedFieldsEntry) GetApiVersionOk

func (o *ManagedFieldsEntry) GetApiVersionOk() (*string, bool)

GetApiVersionOk returns a tuple with the ApiVersion field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ManagedFieldsEntry) GetFieldsType

func (o *ManagedFieldsEntry) GetFieldsType() string

GetFieldsType returns the FieldsType field value if set, zero value otherwise.

func (*ManagedFieldsEntry) GetFieldsTypeOk

func (o *ManagedFieldsEntry) GetFieldsTypeOk() (*string, bool)

GetFieldsTypeOk returns a tuple with the FieldsType field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ManagedFieldsEntry) GetManager

func (o *ManagedFieldsEntry) GetManager() string

GetManager returns the Manager field value if set, zero value otherwise.

func (*ManagedFieldsEntry) GetManagerOk

func (o *ManagedFieldsEntry) GetManagerOk() (*string, bool)

GetManagerOk returns a tuple with the Manager field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ManagedFieldsEntry) GetOperation

func (o *ManagedFieldsEntry) GetOperation() string

GetOperation returns the Operation field value if set, zero value otherwise.

func (*ManagedFieldsEntry) GetOperationOk

func (o *ManagedFieldsEntry) GetOperationOk() (*string, bool)

GetOperationOk returns a tuple with the Operation field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ManagedFieldsEntry) GetSubresource

func (o *ManagedFieldsEntry) GetSubresource() string

GetSubresource returns the Subresource field value if set, zero value otherwise.

func (*ManagedFieldsEntry) GetSubresourceOk

func (o *ManagedFieldsEntry) GetSubresourceOk() (*string, bool)

GetSubresourceOk returns a tuple with the Subresource field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ManagedFieldsEntry) GetTime

func (o *ManagedFieldsEntry) GetTime() time.Time

GetTime returns the Time field value if set, zero value otherwise.

func (*ManagedFieldsEntry) GetTimeOk

func (o *ManagedFieldsEntry) GetTimeOk() (*time.Time, bool)

GetTimeOk returns a tuple with the Time field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ManagedFieldsEntry) HasApiVersion

func (o *ManagedFieldsEntry) HasApiVersion() bool

HasApiVersion returns a boolean if a field has been set.

func (*ManagedFieldsEntry) HasFieldsType

func (o *ManagedFieldsEntry) HasFieldsType() bool

HasFieldsType returns a boolean if a field has been set.

func (*ManagedFieldsEntry) HasManager

func (o *ManagedFieldsEntry) HasManager() bool

HasManager returns a boolean if a field has been set.

func (*ManagedFieldsEntry) HasOperation

func (o *ManagedFieldsEntry) HasOperation() bool

HasOperation returns a boolean if a field has been set.

func (*ManagedFieldsEntry) HasSubresource

func (o *ManagedFieldsEntry) HasSubresource() bool

HasSubresource returns a boolean if a field has been set.

func (*ManagedFieldsEntry) HasTime

func (o *ManagedFieldsEntry) HasTime() bool

HasTime returns a boolean if a field has been set.

func (ManagedFieldsEntry) MarshalJSON

func (o ManagedFieldsEntry) MarshalJSON() ([]byte, error)

func (*ManagedFieldsEntry) SetApiVersion

func (o *ManagedFieldsEntry) SetApiVersion(v string)

SetApiVersion gets a reference to the given string and assigns it to the ApiVersion field.

func (*ManagedFieldsEntry) SetFieldsType

func (o *ManagedFieldsEntry) SetFieldsType(v string)

SetFieldsType gets a reference to the given string and assigns it to the FieldsType field.

func (*ManagedFieldsEntry) SetManager

func (o *ManagedFieldsEntry) SetManager(v string)

SetManager gets a reference to the given string and assigns it to the Manager field.

func (*ManagedFieldsEntry) SetOperation

func (o *ManagedFieldsEntry) SetOperation(v string)

SetOperation gets a reference to the given string and assigns it to the Operation field.

func (*ManagedFieldsEntry) SetSubresource

func (o *ManagedFieldsEntry) SetSubresource(v string)

SetSubresource gets a reference to the given string and assigns it to the Subresource field.

func (*ManagedFieldsEntry) SetTime

func (o *ManagedFieldsEntry) SetTime(v time.Time)

SetTime gets a reference to the given time.Time and assigns it to the Time field.

type NullableAggregationRule

type NullableAggregationRule struct {
	// contains filtered or unexported fields
}

func NewNullableAggregationRule

func NewNullableAggregationRule(val *AggregationRule) *NullableAggregationRule

func (NullableAggregationRule) Get

func (NullableAggregationRule) IsSet

func (v NullableAggregationRule) IsSet() bool

func (NullableAggregationRule) MarshalJSON

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

func (*NullableAggregationRule) Set

func (*NullableAggregationRule) UnmarshalJSON

func (v *NullableAggregationRule) UnmarshalJSON(src []byte) error

func (*NullableAggregationRule) Unset

func (v *NullableAggregationRule) Unset()

type NullableBool

type NullableBool struct {
	// contains filtered or unexported fields
}

func NewNullableBool

func NewNullableBool(val *bool) *NullableBool

func (NullableBool) Get

func (v NullableBool) Get() *bool

func (NullableBool) IsSet

func (v NullableBool) IsSet() bool

func (NullableBool) MarshalJSON

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

func (*NullableBool) Set

func (v *NullableBool) Set(val *bool)

func (*NullableBool) UnmarshalJSON

func (v *NullableBool) UnmarshalJSON(src []byte) error

func (*NullableBool) Unset

func (v *NullableBool) Unset()

type NullableClusterRole

type NullableClusterRole struct {
	// contains filtered or unexported fields
}

func NewNullableClusterRole

func NewNullableClusterRole(val *ClusterRole) *NullableClusterRole

func (NullableClusterRole) Get

func (NullableClusterRole) IsSet

func (v NullableClusterRole) IsSet() bool

func (NullableClusterRole) MarshalJSON

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

func (*NullableClusterRole) Set

func (v *NullableClusterRole) Set(val *ClusterRole)

func (*NullableClusterRole) UnmarshalJSON

func (v *NullableClusterRole) UnmarshalJSON(src []byte) error

func (*NullableClusterRole) Unset

func (v *NullableClusterRole) Unset()

type NullableClusterRoleBinding

type NullableClusterRoleBinding struct {
	// contains filtered or unexported fields
}

func NewNullableClusterRoleBinding

func NewNullableClusterRoleBinding(val *ClusterRoleBinding) *NullableClusterRoleBinding

func (NullableClusterRoleBinding) Get

func (NullableClusterRoleBinding) IsSet

func (v NullableClusterRoleBinding) IsSet() bool

func (NullableClusterRoleBinding) MarshalJSON

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

func (*NullableClusterRoleBinding) Set

func (*NullableClusterRoleBinding) UnmarshalJSON

func (v *NullableClusterRoleBinding) UnmarshalJSON(src []byte) error

func (*NullableClusterRoleBinding) Unset

func (v *NullableClusterRoleBinding) Unset()

type NullableCreateRbacData

type NullableCreateRbacData struct {
	// contains filtered or unexported fields
}

func NewNullableCreateRbacData

func NewNullableCreateRbacData(val *CreateRbacData) *NullableCreateRbacData

func (NullableCreateRbacData) Get

func (NullableCreateRbacData) IsSet

func (v NullableCreateRbacData) IsSet() bool

func (NullableCreateRbacData) MarshalJSON

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

func (*NullableCreateRbacData) Set

func (*NullableCreateRbacData) UnmarshalJSON

func (v *NullableCreateRbacData) UnmarshalJSON(src []byte) error

func (*NullableCreateRbacData) Unset

func (v *NullableCreateRbacData) Unset()

type NullableDeleteRbacData

type NullableDeleteRbacData struct {
	// contains filtered or unexported fields
}

func NewNullableDeleteRbacData

func NewNullableDeleteRbacData(val *DeleteRbacData) *NullableDeleteRbacData

func (NullableDeleteRbacData) Get

func (NullableDeleteRbacData) IsSet

func (v NullableDeleteRbacData) IsSet() bool

func (NullableDeleteRbacData) MarshalJSON

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

func (*NullableDeleteRbacData) Set

func (*NullableDeleteRbacData) UnmarshalJSON

func (v *NullableDeleteRbacData) UnmarshalJSON(src []byte) error

func (*NullableDeleteRbacData) Unset

func (v *NullableDeleteRbacData) Unset()

type NullableFloat32

type NullableFloat32 struct {
	// contains filtered or unexported fields
}

func NewNullableFloat32

func NewNullableFloat32(val *float32) *NullableFloat32

func (NullableFloat32) Get

func (v NullableFloat32) Get() *float32

func (NullableFloat32) IsSet

func (v NullableFloat32) IsSet() bool

func (NullableFloat32) MarshalJSON

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

func (*NullableFloat32) Set

func (v *NullableFloat32) Set(val *float32)

func (*NullableFloat32) UnmarshalJSON

func (v *NullableFloat32) UnmarshalJSON(src []byte) error

func (*NullableFloat32) Unset

func (v *NullableFloat32) Unset()

type NullableFloat64

type NullableFloat64 struct {
	// contains filtered or unexported fields
}

func NewNullableFloat64

func NewNullableFloat64(val *float64) *NullableFloat64

func (NullableFloat64) Get

func (v NullableFloat64) Get() *float64

func (NullableFloat64) IsSet

func (v NullableFloat64) IsSet() bool

func (NullableFloat64) MarshalJSON

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

func (*NullableFloat64) Set

func (v *NullableFloat64) Set(val *float64)

func (*NullableFloat64) UnmarshalJSON

func (v *NullableFloat64) UnmarshalJSON(src []byte) error

func (*NullableFloat64) Unset

func (v *NullableFloat64) Unset()

type NullableInt

type NullableInt struct {
	// contains filtered or unexported fields
}

func NewNullableInt

func NewNullableInt(val *int) *NullableInt

func (NullableInt) Get

func (v NullableInt) Get() *int

func (NullableInt) IsSet

func (v NullableInt) IsSet() bool

func (NullableInt) MarshalJSON

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

func (*NullableInt) Set

func (v *NullableInt) Set(val *int)

func (*NullableInt) UnmarshalJSON

func (v *NullableInt) UnmarshalJSON(src []byte) error

func (*NullableInt) Unset

func (v *NullableInt) Unset()

type NullableInt32

type NullableInt32 struct {
	// contains filtered or unexported fields
}

func NewNullableInt32

func NewNullableInt32(val *int32) *NullableInt32

func (NullableInt32) Get

func (v NullableInt32) Get() *int32

func (NullableInt32) IsSet

func (v NullableInt32) IsSet() bool

func (NullableInt32) MarshalJSON

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

func (*NullableInt32) Set

func (v *NullableInt32) Set(val *int32)

func (*NullableInt32) UnmarshalJSON

func (v *NullableInt32) UnmarshalJSON(src []byte) error

func (*NullableInt32) Unset

func (v *NullableInt32) Unset()

type NullableInt64

type NullableInt64 struct {
	// contains filtered or unexported fields
}

func NewNullableInt64

func NewNullableInt64(val *int64) *NullableInt64

func (NullableInt64) Get

func (v NullableInt64) Get() *int64

func (NullableInt64) IsSet

func (v NullableInt64) IsSet() bool

func (NullableInt64) MarshalJSON

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

func (*NullableInt64) Set

func (v *NullableInt64) Set(val *int64)

func (*NullableInt64) UnmarshalJSON

func (v *NullableInt64) UnmarshalJSON(src []byte) error

func (*NullableInt64) Unset

func (v *NullableInt64) Unset()

type NullableLabelSelector

type NullableLabelSelector struct {
	// contains filtered or unexported fields
}

func NewNullableLabelSelector

func NewNullableLabelSelector(val *LabelSelector) *NullableLabelSelector

func (NullableLabelSelector) Get

func (NullableLabelSelector) IsSet

func (v NullableLabelSelector) IsSet() bool

func (NullableLabelSelector) MarshalJSON

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

func (*NullableLabelSelector) Set

func (v *NullableLabelSelector) Set(val *LabelSelector)

func (*NullableLabelSelector) UnmarshalJSON

func (v *NullableLabelSelector) UnmarshalJSON(src []byte) error

func (*NullableLabelSelector) Unset

func (v *NullableLabelSelector) Unset()

type NullableLabelSelectorRequirement

type NullableLabelSelectorRequirement struct {
	// contains filtered or unexported fields
}

func (NullableLabelSelectorRequirement) Get

func (NullableLabelSelectorRequirement) IsSet

func (NullableLabelSelectorRequirement) MarshalJSON

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

func (*NullableLabelSelectorRequirement) Set

func (*NullableLabelSelectorRequirement) UnmarshalJSON

func (v *NullableLabelSelectorRequirement) UnmarshalJSON(src []byte) error

func (*NullableLabelSelectorRequirement) Unset

type NullableManagedFieldsEntry

type NullableManagedFieldsEntry struct {
	// contains filtered or unexported fields
}

func NewNullableManagedFieldsEntry

func NewNullableManagedFieldsEntry(val *ManagedFieldsEntry) *NullableManagedFieldsEntry

func (NullableManagedFieldsEntry) Get

func (NullableManagedFieldsEntry) IsSet

func (v NullableManagedFieldsEntry) IsSet() bool

func (NullableManagedFieldsEntry) MarshalJSON

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

func (*NullableManagedFieldsEntry) Set

func (*NullableManagedFieldsEntry) UnmarshalJSON

func (v *NullableManagedFieldsEntry) UnmarshalJSON(src []byte) error

func (*NullableManagedFieldsEntry) Unset

func (v *NullableManagedFieldsEntry) Unset()

type NullableObjectMeta

type NullableObjectMeta struct {
	// contains filtered or unexported fields
}

func NewNullableObjectMeta

func NewNullableObjectMeta(val *ObjectMeta) *NullableObjectMeta

func (NullableObjectMeta) Get

func (v NullableObjectMeta) Get() *ObjectMeta

func (NullableObjectMeta) IsSet

func (v NullableObjectMeta) IsSet() bool

func (NullableObjectMeta) MarshalJSON

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

func (*NullableObjectMeta) Set

func (v *NullableObjectMeta) Set(val *ObjectMeta)

func (*NullableObjectMeta) UnmarshalJSON

func (v *NullableObjectMeta) UnmarshalJSON(src []byte) error

func (*NullableObjectMeta) Unset

func (v *NullableObjectMeta) Unset()

type NullableOwnerReference

type NullableOwnerReference struct {
	// contains filtered or unexported fields
}

func NewNullableOwnerReference

func NewNullableOwnerReference(val *OwnerReference) *NullableOwnerReference

func (NullableOwnerReference) Get

func (NullableOwnerReference) IsSet

func (v NullableOwnerReference) IsSet() bool

func (NullableOwnerReference) MarshalJSON

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

func (*NullableOwnerReference) Set

func (*NullableOwnerReference) UnmarshalJSON

func (v *NullableOwnerReference) UnmarshalJSON(src []byte) error

func (*NullableOwnerReference) Unset

func (v *NullableOwnerReference) Unset()

type NullablePolicyRule

type NullablePolicyRule struct {
	// contains filtered or unexported fields
}

func NewNullablePolicyRule

func NewNullablePolicyRule(val *PolicyRule) *NullablePolicyRule

func (NullablePolicyRule) Get

func (v NullablePolicyRule) Get() *PolicyRule

func (NullablePolicyRule) IsSet

func (v NullablePolicyRule) IsSet() bool

func (NullablePolicyRule) MarshalJSON

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

func (*NullablePolicyRule) Set

func (v *NullablePolicyRule) Set(val *PolicyRule)

func (*NullablePolicyRule) UnmarshalJSON

func (v *NullablePolicyRule) UnmarshalJSON(src []byte) error

func (*NullablePolicyRule) Unset

func (v *NullablePolicyRule) Unset()

type NullableRBACIncrementRequest

type NullableRBACIncrementRequest struct {
	// contains filtered or unexported fields
}

func NewNullableRBACIncrementRequest

func NewNullableRBACIncrementRequest(val *RBACIncrementRequest) *NullableRBACIncrementRequest

func (NullableRBACIncrementRequest) Get

func (NullableRBACIncrementRequest) IsSet

func (NullableRBACIncrementRequest) MarshalJSON

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

func (*NullableRBACIncrementRequest) Set

func (*NullableRBACIncrementRequest) UnmarshalJSON

func (v *NullableRBACIncrementRequest) UnmarshalJSON(src []byte) error

func (*NullableRBACIncrementRequest) Unset

func (v *NullableRBACIncrementRequest) Unset()

type NullableRBACRequest

type NullableRBACRequest struct {
	// contains filtered or unexported fields
}

func NewNullableRBACRequest

func NewNullableRBACRequest(val *RBACRequest) *NullableRBACRequest

func (NullableRBACRequest) Get

func (NullableRBACRequest) IsSet

func (v NullableRBACRequest) IsSet() bool

func (NullableRBACRequest) MarshalJSON

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

func (*NullableRBACRequest) Set

func (v *NullableRBACRequest) Set(val *RBACRequest)

func (*NullableRBACRequest) UnmarshalJSON

func (v *NullableRBACRequest) UnmarshalJSON(src []byte) error

func (*NullableRBACRequest) Unset

func (v *NullableRBACRequest) Unset()

type NullableRBACResponseError

type NullableRBACResponseError struct {
	// contains filtered or unexported fields
}

func NewNullableRBACResponseError

func NewNullableRBACResponseError(val *RBACResponseError) *NullableRBACResponseError

func (NullableRBACResponseError) Get

func (NullableRBACResponseError) IsSet

func (v NullableRBACResponseError) IsSet() bool

func (NullableRBACResponseError) MarshalJSON

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

func (*NullableRBACResponseError) Set

func (*NullableRBACResponseError) UnmarshalJSON

func (v *NullableRBACResponseError) UnmarshalJSON(src []byte) error

func (*NullableRBACResponseError) Unset

func (v *NullableRBACResponseError) Unset()

type NullableRBACSnapshotRequest

type NullableRBACSnapshotRequest struct {
	// contains filtered or unexported fields
}

func NewNullableRBACSnapshotRequest

func NewNullableRBACSnapshotRequest(val *RBACSnapshotRequest) *NullableRBACSnapshotRequest

func (NullableRBACSnapshotRequest) Get

func (NullableRBACSnapshotRequest) IsSet

func (NullableRBACSnapshotRequest) MarshalJSON

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

func (*NullableRBACSnapshotRequest) Set

func (*NullableRBACSnapshotRequest) UnmarshalJSON

func (v *NullableRBACSnapshotRequest) UnmarshalJSON(src []byte) error

func (*NullableRBACSnapshotRequest) Unset

func (v *NullableRBACSnapshotRequest) Unset()

type NullableRbacData

type NullableRbacData struct {
	// contains filtered or unexported fields
}

func NewNullableRbacData

func NewNullableRbacData(val *RbacData) *NullableRbacData

func (NullableRbacData) Get

func (v NullableRbacData) Get() *RbacData

func (NullableRbacData) IsSet

func (v NullableRbacData) IsSet() bool

func (NullableRbacData) MarshalJSON

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

func (*NullableRbacData) Set

func (v *NullableRbacData) Set(val *RbacData)

func (*NullableRbacData) UnmarshalJSON

func (v *NullableRbacData) UnmarshalJSON(src []byte) error

func (*NullableRbacData) Unset

func (v *NullableRbacData) Unset()

type NullableRbacDataChanges

type NullableRbacDataChanges struct {
	// contains filtered or unexported fields
}

func NewNullableRbacDataChanges

func NewNullableRbacDataChanges(val *RbacDataChanges) *NullableRbacDataChanges

func (NullableRbacDataChanges) Get

func (NullableRbacDataChanges) IsSet

func (v NullableRbacDataChanges) IsSet() bool

func (NullableRbacDataChanges) MarshalJSON

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

func (*NullableRbacDataChanges) Set

func (*NullableRbacDataChanges) UnmarshalJSON

func (v *NullableRbacDataChanges) UnmarshalJSON(src []byte) error

func (*NullableRbacDataChanges) Unset

func (v *NullableRbacDataChanges) Unset()

type NullableRole

type NullableRole struct {
	// contains filtered or unexported fields
}

func NewNullableRole

func NewNullableRole(val *Role) *NullableRole

func (NullableRole) Get

func (v NullableRole) Get() *Role

func (NullableRole) IsSet

func (v NullableRole) IsSet() bool

func (NullableRole) MarshalJSON

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

func (*NullableRole) Set

func (v *NullableRole) Set(val *Role)

func (*NullableRole) UnmarshalJSON

func (v *NullableRole) UnmarshalJSON(src []byte) error

func (*NullableRole) Unset

func (v *NullableRole) Unset()

type NullableRoleBinding

type NullableRoleBinding struct {
	// contains filtered or unexported fields
}

func NewNullableRoleBinding

func NewNullableRoleBinding(val *RoleBinding) *NullableRoleBinding

func (NullableRoleBinding) Get

func (NullableRoleBinding) IsSet

func (v NullableRoleBinding) IsSet() bool

func (NullableRoleBinding) MarshalJSON

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

func (*NullableRoleBinding) Set

func (v *NullableRoleBinding) Set(val *RoleBinding)

func (*NullableRoleBinding) UnmarshalJSON

func (v *NullableRoleBinding) UnmarshalJSON(src []byte) error

func (*NullableRoleBinding) Unset

func (v *NullableRoleBinding) Unset()

type NullableRoleRef

type NullableRoleRef struct {
	// contains filtered or unexported fields
}

func NewNullableRoleRef

func NewNullableRoleRef(val *RoleRef) *NullableRoleRef

func (NullableRoleRef) Get

func (v NullableRoleRef) Get() *RoleRef

func (NullableRoleRef) IsSet

func (v NullableRoleRef) IsSet() bool

func (NullableRoleRef) MarshalJSON

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

func (*NullableRoleRef) Set

func (v *NullableRoleRef) Set(val *RoleRef)

func (*NullableRoleRef) UnmarshalJSON

func (v *NullableRoleRef) UnmarshalJSON(src []byte) error

func (*NullableRoleRef) Unset

func (v *NullableRoleRef) Unset()

type NullableStartSnapshot

type NullableStartSnapshot struct {
	// contains filtered or unexported fields
}

func NewNullableStartSnapshot

func NewNullableStartSnapshot(val *StartSnapshot) *NullableStartSnapshot

func (NullableStartSnapshot) Get

func (NullableStartSnapshot) IsSet

func (v NullableStartSnapshot) IsSet() bool

func (NullableStartSnapshot) MarshalJSON

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

func (*NullableStartSnapshot) Set

func (v *NullableStartSnapshot) Set(val *StartSnapshot)

func (*NullableStartSnapshot) UnmarshalJSON

func (v *NullableStartSnapshot) UnmarshalJSON(src []byte) error

func (*NullableStartSnapshot) Unset

func (v *NullableStartSnapshot) Unset()

type NullableString

type NullableString struct {
	// contains filtered or unexported fields
}

func NewNullableString

func NewNullableString(val *string) *NullableString

func (NullableString) Get

func (v NullableString) Get() *string

func (NullableString) IsSet

func (v NullableString) IsSet() bool

func (NullableString) MarshalJSON

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

func (*NullableString) Set

func (v *NullableString) Set(val *string)

func (*NullableString) UnmarshalJSON

func (v *NullableString) UnmarshalJSON(src []byte) error

func (*NullableString) Unset

func (v *NullableString) Unset()

type NullableSubject

type NullableSubject struct {
	// contains filtered or unexported fields
}

func NewNullableSubject

func NewNullableSubject(val *Subject) *NullableSubject

func (NullableSubject) Get

func (v NullableSubject) Get() *Subject

func (NullableSubject) IsSet

func (v NullableSubject) IsSet() bool

func (NullableSubject) MarshalJSON

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

func (*NullableSubject) Set

func (v *NullableSubject) Set(val *Subject)

func (*NullableSubject) UnmarshalJSON

func (v *NullableSubject) UnmarshalJSON(src []byte) error

func (*NullableSubject) Unset

func (v *NullableSubject) Unset()

type NullableTime

type NullableTime struct {
	// contains filtered or unexported fields
}

func NewNullableTime

func NewNullableTime(val *time.Time) *NullableTime

func (NullableTime) Get

func (v NullableTime) Get() *time.Time

func (NullableTime) IsSet

func (v NullableTime) IsSet() bool

func (NullableTime) MarshalJSON

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

func (*NullableTime) Set

func (v *NullableTime) Set(val *time.Time)

func (*NullableTime) UnmarshalJSON

func (v *NullableTime) UnmarshalJSON(src []byte) error

func (*NullableTime) Unset

func (v *NullableTime) Unset()

type NullableUpdateRbacData

type NullableUpdateRbacData struct {
	// contains filtered or unexported fields
}

func NewNullableUpdateRbacData

func NewNullableUpdateRbacData(val *UpdateRbacData) *NullableUpdateRbacData

func (NullableUpdateRbacData) Get

func (NullableUpdateRbacData) IsSet

func (v NullableUpdateRbacData) IsSet() bool

func (NullableUpdateRbacData) MarshalJSON

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

func (*NullableUpdateRbacData) Set

func (*NullableUpdateRbacData) UnmarshalJSON

func (v *NullableUpdateRbacData) UnmarshalJSON(src []byte) error

func (*NullableUpdateRbacData) Unset

func (v *NullableUpdateRbacData) Unset()

type ObjectMeta

type ObjectMeta struct {
	// Unique identifier for this object. Populated by the system.
	Uid string `json:"uid"`
	// Unique name within a namespace. Required for resource creation.
	Name string `json:"name"`
	// Annotations is an unstructured key-value map stored with a resource that may be set by external tools. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations
	Annotations *map[string]string `json:"annotations,omitempty"`
	// Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON.
	CreationTimestamp *time.Time `json:"creationTimestamp,omitempty"`
	// Number of seconds allowed for this object to gracefully terminate before removal.
	DeletionGracePeriodSeconds *int64 `json:"deletionGracePeriodSeconds,omitempty"`
	// Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON.
	DeletionTimestamp *time.Time `json:"deletionTimestamp,omitempty"`
	// Must be empty before deletion.
	Finalizers []string `json:"finalizers,omitempty"`
	// Optional prefix for generating a unique name.
	GenerateName *string `json:"generateName,omitempty"`
	// A sequence number representing a specific generation of the desired state.
	Generation *int64 `json:"generation,omitempty"`
	// Map of string keys and values used to organize and categorize objects.
	Labels *map[string]string `json:"labels,omitempty"`
	// Maps workflow-id and version to the set of fields managed by that workflow.
	ManagedFields []ManagedFieldsEntry `json:"managedFields,omitempty"`
	// Defines the space within which each name must be unique.
	Namespace *string `json:"namespace,omitempty"`
	// List of objects depended by this object.
	OwnerReferences []OwnerReference `json:"ownerReferences,omitempty"`
	// Opaque value representing the internal version of this object.
	ResourceVersion *string `json:"resourceVersion,omitempty"`
}

ObjectMeta ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.

func NewObjectMeta

func NewObjectMeta(uid string, name string) *ObjectMeta

NewObjectMeta instantiates a new ObjectMeta object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewObjectMetaWithDefaults

func NewObjectMetaWithDefaults() *ObjectMeta

NewObjectMetaWithDefaults instantiates a new ObjectMeta object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ObjectMeta) GetAnnotations

func (o *ObjectMeta) GetAnnotations() map[string]string

GetAnnotations returns the Annotations field value if set, zero value otherwise.

func (*ObjectMeta) GetAnnotationsOk

func (o *ObjectMeta) GetAnnotationsOk() (*map[string]string, bool)

GetAnnotationsOk returns a tuple with the Annotations field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ObjectMeta) GetCreationTimestamp

func (o *ObjectMeta) GetCreationTimestamp() time.Time

GetCreationTimestamp returns the CreationTimestamp field value if set, zero value otherwise.

func (*ObjectMeta) GetCreationTimestampOk

func (o *ObjectMeta) GetCreationTimestampOk() (*time.Time, bool)

GetCreationTimestampOk returns a tuple with the CreationTimestamp field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ObjectMeta) GetDeletionGracePeriodSeconds

func (o *ObjectMeta) GetDeletionGracePeriodSeconds() int64

GetDeletionGracePeriodSeconds returns the DeletionGracePeriodSeconds field value if set, zero value otherwise.

func (*ObjectMeta) GetDeletionGracePeriodSecondsOk

func (o *ObjectMeta) GetDeletionGracePeriodSecondsOk() (*int64, bool)

GetDeletionGracePeriodSecondsOk returns a tuple with the DeletionGracePeriodSeconds field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ObjectMeta) GetDeletionTimestamp

func (o *ObjectMeta) GetDeletionTimestamp() time.Time

GetDeletionTimestamp returns the DeletionTimestamp field value if set, zero value otherwise.

func (*ObjectMeta) GetDeletionTimestampOk

func (o *ObjectMeta) GetDeletionTimestampOk() (*time.Time, bool)

GetDeletionTimestampOk returns a tuple with the DeletionTimestamp field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ObjectMeta) GetFinalizers

func (o *ObjectMeta) GetFinalizers() []string

GetFinalizers returns the Finalizers field value if set, zero value otherwise.

func (*ObjectMeta) GetFinalizersOk

func (o *ObjectMeta) GetFinalizersOk() ([]string, bool)

GetFinalizersOk returns a tuple with the Finalizers field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ObjectMeta) GetGenerateName

func (o *ObjectMeta) GetGenerateName() string

GetGenerateName returns the GenerateName field value if set, zero value otherwise.

func (*ObjectMeta) GetGenerateNameOk

func (o *ObjectMeta) GetGenerateNameOk() (*string, bool)

GetGenerateNameOk returns a tuple with the GenerateName field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ObjectMeta) GetGeneration

func (o *ObjectMeta) GetGeneration() int64

GetGeneration returns the Generation field value if set, zero value otherwise.

func (*ObjectMeta) GetGenerationOk

func (o *ObjectMeta) GetGenerationOk() (*int64, bool)

GetGenerationOk returns a tuple with the Generation field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ObjectMeta) GetLabels

func (o *ObjectMeta) GetLabels() map[string]string

GetLabels returns the Labels field value if set, zero value otherwise.

func (*ObjectMeta) GetLabelsOk

func (o *ObjectMeta) GetLabelsOk() (*map[string]string, bool)

GetLabelsOk returns a tuple with the Labels field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ObjectMeta) GetManagedFields

func (o *ObjectMeta) GetManagedFields() []ManagedFieldsEntry

GetManagedFields returns the ManagedFields field value if set, zero value otherwise.

func (*ObjectMeta) GetManagedFieldsOk

func (o *ObjectMeta) GetManagedFieldsOk() ([]ManagedFieldsEntry, bool)

GetManagedFieldsOk returns a tuple with the ManagedFields field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ObjectMeta) GetName

func (o *ObjectMeta) GetName() string

GetName returns the Name field value

func (*ObjectMeta) GetNameOk

func (o *ObjectMeta) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.

func (*ObjectMeta) GetNamespace

func (o *ObjectMeta) GetNamespace() string

GetNamespace returns the Namespace field value if set, zero value otherwise.

func (*ObjectMeta) GetNamespaceOk

func (o *ObjectMeta) GetNamespaceOk() (*string, bool)

GetNamespaceOk returns a tuple with the Namespace field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ObjectMeta) GetOwnerReferences

func (o *ObjectMeta) GetOwnerReferences() []OwnerReference

GetOwnerReferences returns the OwnerReferences field value if set, zero value otherwise.

func (*ObjectMeta) GetOwnerReferencesOk

func (o *ObjectMeta) GetOwnerReferencesOk() ([]OwnerReference, bool)

GetOwnerReferencesOk returns a tuple with the OwnerReferences field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ObjectMeta) GetResourceVersion

func (o *ObjectMeta) GetResourceVersion() string

GetResourceVersion returns the ResourceVersion field value if set, zero value otherwise.

func (*ObjectMeta) GetResourceVersionOk

func (o *ObjectMeta) GetResourceVersionOk() (*string, bool)

GetResourceVersionOk returns a tuple with the ResourceVersion field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ObjectMeta) GetUid

func (o *ObjectMeta) GetUid() string

GetUid returns the Uid field value

func (*ObjectMeta) GetUidOk

func (o *ObjectMeta) GetUidOk() (*string, bool)

GetUidOk returns a tuple with the Uid field value and a boolean to check if the value has been set.

func (*ObjectMeta) HasAnnotations

func (o *ObjectMeta) HasAnnotations() bool

HasAnnotations returns a boolean if a field has been set.

func (*ObjectMeta) HasCreationTimestamp

func (o *ObjectMeta) HasCreationTimestamp() bool

HasCreationTimestamp returns a boolean if a field has been set.

func (*ObjectMeta) HasDeletionGracePeriodSeconds

func (o *ObjectMeta) HasDeletionGracePeriodSeconds() bool

HasDeletionGracePeriodSeconds returns a boolean if a field has been set.

func (*ObjectMeta) HasDeletionTimestamp

func (o *ObjectMeta) HasDeletionTimestamp() bool

HasDeletionTimestamp returns a boolean if a field has been set.

func (*ObjectMeta) HasFinalizers

func (o *ObjectMeta) HasFinalizers() bool

HasFinalizers returns a boolean if a field has been set.

func (*ObjectMeta) HasGenerateName

func (o *ObjectMeta) HasGenerateName() bool

HasGenerateName returns a boolean if a field has been set.

func (*ObjectMeta) HasGeneration

func (o *ObjectMeta) HasGeneration() bool

HasGeneration returns a boolean if a field has been set.

func (*ObjectMeta) HasLabels

func (o *ObjectMeta) HasLabels() bool

HasLabels returns a boolean if a field has been set.

func (*ObjectMeta) HasManagedFields

func (o *ObjectMeta) HasManagedFields() bool

HasManagedFields returns a boolean if a field has been set.

func (*ObjectMeta) HasNamespace

func (o *ObjectMeta) HasNamespace() bool

HasNamespace returns a boolean if a field has been set.

func (*ObjectMeta) HasOwnerReferences

func (o *ObjectMeta) HasOwnerReferences() bool

HasOwnerReferences returns a boolean if a field has been set.

func (*ObjectMeta) HasResourceVersion

func (o *ObjectMeta) HasResourceVersion() bool

HasResourceVersion returns a boolean if a field has been set.

func (ObjectMeta) MarshalJSON

func (o ObjectMeta) MarshalJSON() ([]byte, error)

func (*ObjectMeta) SetAnnotations

func (o *ObjectMeta) SetAnnotations(v map[string]string)

SetAnnotations gets a reference to the given map[string]string and assigns it to the Annotations field.

func (*ObjectMeta) SetCreationTimestamp

func (o *ObjectMeta) SetCreationTimestamp(v time.Time)

SetCreationTimestamp gets a reference to the given time.Time and assigns it to the CreationTimestamp field.

func (*ObjectMeta) SetDeletionGracePeriodSeconds

func (o *ObjectMeta) SetDeletionGracePeriodSeconds(v int64)

SetDeletionGracePeriodSeconds gets a reference to the given int64 and assigns it to the DeletionGracePeriodSeconds field.

func (*ObjectMeta) SetDeletionTimestamp

func (o *ObjectMeta) SetDeletionTimestamp(v time.Time)

SetDeletionTimestamp gets a reference to the given time.Time and assigns it to the DeletionTimestamp field.

func (*ObjectMeta) SetFinalizers

func (o *ObjectMeta) SetFinalizers(v []string)

SetFinalizers gets a reference to the given []string and assigns it to the Finalizers field.

func (*ObjectMeta) SetGenerateName

func (o *ObjectMeta) SetGenerateName(v string)

SetGenerateName gets a reference to the given string and assigns it to the GenerateName field.

func (*ObjectMeta) SetGeneration

func (o *ObjectMeta) SetGeneration(v int64)

SetGeneration gets a reference to the given int64 and assigns it to the Generation field.

func (*ObjectMeta) SetLabels

func (o *ObjectMeta) SetLabels(v map[string]string)

SetLabels gets a reference to the given map[string]string and assigns it to the Labels field.

func (*ObjectMeta) SetManagedFields

func (o *ObjectMeta) SetManagedFields(v []ManagedFieldsEntry)

SetManagedFields gets a reference to the given []ManagedFieldsEntry and assigns it to the ManagedFields field.

func (*ObjectMeta) SetName

func (o *ObjectMeta) SetName(v string)

SetName sets field value

func (*ObjectMeta) SetNamespace

func (o *ObjectMeta) SetNamespace(v string)

SetNamespace gets a reference to the given string and assigns it to the Namespace field.

func (*ObjectMeta) SetOwnerReferences

func (o *ObjectMeta) SetOwnerReferences(v []OwnerReference)

SetOwnerReferences gets a reference to the given []OwnerReference and assigns it to the OwnerReferences field.

func (*ObjectMeta) SetResourceVersion

func (o *ObjectMeta) SetResourceVersion(v string)

SetResourceVersion gets a reference to the given string and assigns it to the ResourceVersion field.

func (*ObjectMeta) SetUid

func (o *ObjectMeta) SetUid(v string)

SetUid sets field value

type OwnerReference

type OwnerReference struct {
	// UID of the referent.
	Uid string `json:"uid"`
	// Name of the referent.
	Name string `json:"name"`
	// Kind of the referent.
	Kind string `json:"kind"`
	// If true, AND if the owner has the 'foregroundDeletion' finalizer, then the owner cannot be deleted from the key-value store until this reference is removed.
	BlockOwnerDeletion *bool `json:"blockOwnerDeletion,omitempty"`
	// If true, this reference points to the managing controller.
	Controller *bool `json:"controller,omitempty"`
}

OwnerReference OwnerReference contains enough information to let you identify an owning object. An owning object must be in the same namespace as the dependent, or be cluster-scoped, so there is no namespace field.

func NewOwnerReference

func NewOwnerReference(uid string, name string, kind string) *OwnerReference

NewOwnerReference instantiates a new OwnerReference object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewOwnerReferenceWithDefaults

func NewOwnerReferenceWithDefaults() *OwnerReference

NewOwnerReferenceWithDefaults instantiates a new OwnerReference object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*OwnerReference) GetBlockOwnerDeletion

func (o *OwnerReference) GetBlockOwnerDeletion() bool

GetBlockOwnerDeletion returns the BlockOwnerDeletion field value if set, zero value otherwise.

func (*OwnerReference) GetBlockOwnerDeletionOk

func (o *OwnerReference) GetBlockOwnerDeletionOk() (*bool, bool)

GetBlockOwnerDeletionOk returns a tuple with the BlockOwnerDeletion field value if set, nil otherwise and a boolean to check if the value has been set.

func (*OwnerReference) GetController

func (o *OwnerReference) GetController() bool

GetController returns the Controller field value if set, zero value otherwise.

func (*OwnerReference) GetControllerOk

func (o *OwnerReference) GetControllerOk() (*bool, bool)

GetControllerOk returns a tuple with the Controller field value if set, nil otherwise and a boolean to check if the value has been set.

func (*OwnerReference) GetKind

func (o *OwnerReference) GetKind() string

GetKind returns the Kind field value

func (*OwnerReference) GetKindOk

func (o *OwnerReference) GetKindOk() (*string, bool)

GetKindOk returns a tuple with the Kind field value and a boolean to check if the value has been set.

func (*OwnerReference) GetName

func (o *OwnerReference) GetName() string

GetName returns the Name field value

func (*OwnerReference) GetNameOk

func (o *OwnerReference) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.

func (*OwnerReference) GetUid

func (o *OwnerReference) GetUid() string

GetUid returns the Uid field value

func (*OwnerReference) GetUidOk

func (o *OwnerReference) GetUidOk() (*string, bool)

GetUidOk returns a tuple with the Uid field value and a boolean to check if the value has been set.

func (*OwnerReference) HasBlockOwnerDeletion

func (o *OwnerReference) HasBlockOwnerDeletion() bool

HasBlockOwnerDeletion returns a boolean if a field has been set.

func (*OwnerReference) HasController

func (o *OwnerReference) HasController() bool

HasController returns a boolean if a field has been set.

func (OwnerReference) MarshalJSON

func (o OwnerReference) MarshalJSON() ([]byte, error)

func (*OwnerReference) SetBlockOwnerDeletion

func (o *OwnerReference) SetBlockOwnerDeletion(v bool)

SetBlockOwnerDeletion gets a reference to the given bool and assigns it to the BlockOwnerDeletion field.

func (*OwnerReference) SetController

func (o *OwnerReference) SetController(v bool)

SetController gets a reference to the given bool and assigns it to the Controller field.

func (*OwnerReference) SetKind

func (o *OwnerReference) SetKind(v string)

SetKind sets field value

func (*OwnerReference) SetName

func (o *OwnerReference) SetName(v string)

SetName sets field value

func (*OwnerReference) SetUid

func (o *OwnerReference) SetUid(v string)

SetUid sets field value

type PolicyRule

type PolicyRule struct {
	// APIGroups is the name of the APIGroup that contains the resources.
	ApiGroups []string `json:"apiGroups,omitempty"`
	// NonResourceURLs is a set of partial URLs that a user should have access to.
	NonResourceURLs []string `json:"nonResourceURLs,omitempty"`
	// ResourceNames is an optional white list of names that the rule applies to.
	ResourceNames []string `json:"resourceNames,omitempty"`
	// Resources is a list of resources this rule applies to.
	Resources []string `json:"resources,omitempty"`
	// Verbs is a list of Verbs that apply to all ResourceKinds contained in this rule.
	Verbs []string `json:"verbs"`
}

PolicyRule PolicyRule holds information that describes a policy rule.

func NewPolicyRule

func NewPolicyRule(verbs []string) *PolicyRule

NewPolicyRule instantiates a new PolicyRule object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewPolicyRuleWithDefaults

func NewPolicyRuleWithDefaults() *PolicyRule

NewPolicyRuleWithDefaults instantiates a new PolicyRule object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*PolicyRule) GetApiGroups

func (o *PolicyRule) GetApiGroups() []string

GetApiGroups returns the ApiGroups field value if set, zero value otherwise.

func (*PolicyRule) GetApiGroupsOk

func (o *PolicyRule) GetApiGroupsOk() ([]string, bool)

GetApiGroupsOk returns a tuple with the ApiGroups field value if set, nil otherwise and a boolean to check if the value has been set.

func (*PolicyRule) GetNonResourceURLs

func (o *PolicyRule) GetNonResourceURLs() []string

GetNonResourceURLs returns the NonResourceURLs field value if set, zero value otherwise.

func (*PolicyRule) GetNonResourceURLsOk

func (o *PolicyRule) GetNonResourceURLsOk() ([]string, bool)

GetNonResourceURLsOk returns a tuple with the NonResourceURLs field value if set, nil otherwise and a boolean to check if the value has been set.

func (*PolicyRule) GetResourceNames

func (o *PolicyRule) GetResourceNames() []string

GetResourceNames returns the ResourceNames field value if set, zero value otherwise.

func (*PolicyRule) GetResourceNamesOk

func (o *PolicyRule) GetResourceNamesOk() ([]string, bool)

GetResourceNamesOk returns a tuple with the ResourceNames field value if set, nil otherwise and a boolean to check if the value has been set.

func (*PolicyRule) GetResources

func (o *PolicyRule) GetResources() []string

GetResources returns the Resources field value if set, zero value otherwise.

func (*PolicyRule) GetResourcesOk

func (o *PolicyRule) GetResourcesOk() ([]string, bool)

GetResourcesOk returns a tuple with the Resources field value if set, nil otherwise and a boolean to check if the value has been set.

func (*PolicyRule) GetVerbs

func (o *PolicyRule) GetVerbs() []string

GetVerbs returns the Verbs field value

func (*PolicyRule) GetVerbsOk

func (o *PolicyRule) GetVerbsOk() ([]string, bool)

GetVerbsOk returns a tuple with the Verbs field value and a boolean to check if the value has been set.

func (*PolicyRule) HasApiGroups

func (o *PolicyRule) HasApiGroups() bool

HasApiGroups returns a boolean if a field has been set.

func (*PolicyRule) HasNonResourceURLs

func (o *PolicyRule) HasNonResourceURLs() bool

HasNonResourceURLs returns a boolean if a field has been set.

func (*PolicyRule) HasResourceNames

func (o *PolicyRule) HasResourceNames() bool

HasResourceNames returns a boolean if a field has been set.

func (*PolicyRule) HasResources

func (o *PolicyRule) HasResources() bool

HasResources returns a boolean if a field has been set.

func (PolicyRule) MarshalJSON

func (o PolicyRule) MarshalJSON() ([]byte, error)

func (*PolicyRule) SetApiGroups

func (o *PolicyRule) SetApiGroups(v []string)

SetApiGroups gets a reference to the given []string and assigns it to the ApiGroups field.

func (*PolicyRule) SetNonResourceURLs

func (o *PolicyRule) SetNonResourceURLs(v []string)

SetNonResourceURLs gets a reference to the given []string and assigns it to the NonResourceURLs field.

func (*PolicyRule) SetResourceNames

func (o *PolicyRule) SetResourceNames(v []string)

SetResourceNames gets a reference to the given []string and assigns it to the ResourceNames field.

func (*PolicyRule) SetResources

func (o *PolicyRule) SetResources(v []string)

SetResources gets a reference to the given []string and assigns it to the Resources field.

func (*PolicyRule) SetVerbs

func (o *PolicyRule) SetVerbs(v []string)

SetVerbs sets field value

type RBACIncrementRequest

type RBACIncrementRequest struct {
	Type string `json:"_type"`
	// Timestamp where the data was collected by the RBAC Agent
	CollectionTimestamp int64 `json:"collection_timestamp"`
	// Cluster name which identifies the scope of the RBAC data
	Cluster string            `json:"cluster"`
	Changes []RbacDataChanges `json:"changes"`
}

RBACIncrementRequest CreateInstanceRBACRequest holds the a snapshot of data or individual updates or RBAC data

func NewRBACIncrementRequest

func NewRBACIncrementRequest(type_ string, collectionTimestamp int64, cluster string, changes []RbacDataChanges) *RBACIncrementRequest

NewRBACIncrementRequest instantiates a new RBACIncrementRequest object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewRBACIncrementRequestWithDefaults

func NewRBACIncrementRequestWithDefaults() *RBACIncrementRequest

NewRBACIncrementRequestWithDefaults instantiates a new RBACIncrementRequest object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*RBACIncrementRequest) GetChanges

func (o *RBACIncrementRequest) GetChanges() []RbacDataChanges

GetChanges returns the Changes field value

func (*RBACIncrementRequest) GetChangesOk

func (o *RBACIncrementRequest) GetChangesOk() ([]RbacDataChanges, bool)

GetChangesOk returns a tuple with the Changes field value and a boolean to check if the value has been set.

func (*RBACIncrementRequest) GetCluster

func (o *RBACIncrementRequest) GetCluster() string

GetCluster returns the Cluster field value

func (*RBACIncrementRequest) GetClusterOk

func (o *RBACIncrementRequest) GetClusterOk() (*string, bool)

GetClusterOk returns a tuple with the Cluster field value and a boolean to check if the value has been set.

func (*RBACIncrementRequest) GetCollectionTimestamp

func (o *RBACIncrementRequest) GetCollectionTimestamp() int64

GetCollectionTimestamp returns the CollectionTimestamp field value

func (*RBACIncrementRequest) GetCollectionTimestampOk

func (o *RBACIncrementRequest) GetCollectionTimestampOk() (*int64, bool)

GetCollectionTimestampOk returns a tuple with the CollectionTimestamp field value and a boolean to check if the value has been set.

func (*RBACIncrementRequest) GetType

func (o *RBACIncrementRequest) GetType() string

GetType returns the Type field value

func (*RBACIncrementRequest) GetTypeOk

func (o *RBACIncrementRequest) GetTypeOk() (*string, bool)

GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.

func (RBACIncrementRequest) MarshalJSON

func (o RBACIncrementRequest) MarshalJSON() ([]byte, error)

func (*RBACIncrementRequest) SetChanges

func (o *RBACIncrementRequest) SetChanges(v []RbacDataChanges)

SetChanges sets field value

func (*RBACIncrementRequest) SetCluster

func (o *RBACIncrementRequest) SetCluster(v string)

SetCluster sets field value

func (*RBACIncrementRequest) SetCollectionTimestamp

func (o *RBACIncrementRequest) SetCollectionTimestamp(v int64)

SetCollectionTimestamp sets field value

func (*RBACIncrementRequest) SetType

func (o *RBACIncrementRequest) SetType(v string)

SetType sets field value

type RBACRequest

type RBACRequest struct {
	RBACIncrementRequest *RBACIncrementRequest
	RBACSnapshotRequest  *RBACSnapshotRequest
}

RBACRequest - RBACRequest holds the data needed to create or update RBAC objects

func RBACIncrementRequestAsRBACRequest

func RBACIncrementRequestAsRBACRequest(v *RBACIncrementRequest) RBACRequest

RBACIncrementRequestAsRBACRequest is a convenience function that returns RBACIncrementRequest wrapped in RBACRequest

func RBACSnapshotRequestAsRBACRequest

func RBACSnapshotRequestAsRBACRequest(v *RBACSnapshotRequest) RBACRequest

RBACSnapshotRequestAsRBACRequest is a convenience function that returns RBACSnapshotRequest wrapped in RBACRequest

func (*RBACRequest) GetActualInstance

func (obj *RBACRequest) GetActualInstance() interface{}

Get the actual instance

func (RBACRequest) MarshalJSON

func (src RBACRequest) MarshalJSON() ([]byte, error)

Marshal data from the first non-nil pointers in the struct to JSON

func (*RBACRequest) UnmarshalJSON

func (dst *RBACRequest) UnmarshalJSON(data []byte) error

Unmarshal JSON data into one of the pointers in the struct

type RBACResponseError

type RBACResponseError struct {
	Message string `json:"message"`
	Type    string `json:"_type"`
}

RBACResponseError struct for RBACResponseError

func NewRBACResponseError

func NewRBACResponseError(message string, type_ string) *RBACResponseError

NewRBACResponseError instantiates a new RBACResponseError object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewRBACResponseErrorWithDefaults

func NewRBACResponseErrorWithDefaults() *RBACResponseError

NewRBACResponseErrorWithDefaults instantiates a new RBACResponseError object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*RBACResponseError) GetMessage

func (o *RBACResponseError) GetMessage() string

GetMessage returns the Message field value

func (*RBACResponseError) GetMessageOk

func (o *RBACResponseError) GetMessageOk() (*string, bool)

GetMessageOk returns a tuple with the Message field value and a boolean to check if the value has been set.

func (*RBACResponseError) GetType

func (o *RBACResponseError) GetType() string

GetType returns the Type field value

func (*RBACResponseError) GetTypeOk

func (o *RBACResponseError) GetTypeOk() (*string, bool)

GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.

func (RBACResponseError) MarshalJSON

func (o RBACResponseError) MarshalJSON() ([]byte, error)

func (*RBACResponseError) SetMessage

func (o *RBACResponseError) SetMessage(v string)

SetMessage sets field value

func (*RBACResponseError) SetType

func (o *RBACResponseError) SetType(v string)

SetType sets field value

type RBACSnapshotRequest

type RBACSnapshotRequest struct {
	Type string `json:"_type"`
	// Timestamp where the data was collected by the RBAC Agent
	CollectionTimestamp int64 `json:"collection_timestamp"`
	// Incremental number for snapshot batches. Helpful to detect incomplete snapshots that could lead to incorrect conclusions.
	Sequence int32 `json:"sequence"`
	// Cluster name which identifies the scope of the RBAC data
	Cluster       string         `json:"cluster"`
	StartSnapshot *StartSnapshot `json:"start_snapshot,omitempty"`
	// Object that signals that an open Snapshot needs to be closed after ingesting the RBAC data
	StopSnapshot map[string]interface{} `json:"stop_snapshot,omitempty"`
	RbacData     []RbacData             `json:"rbac_data"`
}

RBACSnapshotRequest RBACSnapshotRequest holds a complete or partial snapshot of RBAC data

func NewRBACSnapshotRequest

func NewRBACSnapshotRequest(type_ string, collectionTimestamp int64, sequence int32, cluster string, rbacData []RbacData) *RBACSnapshotRequest

NewRBACSnapshotRequest instantiates a new RBACSnapshotRequest object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewRBACSnapshotRequestWithDefaults

func NewRBACSnapshotRequestWithDefaults() *RBACSnapshotRequest

NewRBACSnapshotRequestWithDefaults instantiates a new RBACSnapshotRequest object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*RBACSnapshotRequest) GetCluster

func (o *RBACSnapshotRequest) GetCluster() string

GetCluster returns the Cluster field value

func (*RBACSnapshotRequest) GetClusterOk

func (o *RBACSnapshotRequest) GetClusterOk() (*string, bool)

GetClusterOk returns a tuple with the Cluster field value and a boolean to check if the value has been set.

func (*RBACSnapshotRequest) GetCollectionTimestamp

func (o *RBACSnapshotRequest) GetCollectionTimestamp() int64

GetCollectionTimestamp returns the CollectionTimestamp field value

func (*RBACSnapshotRequest) GetCollectionTimestampOk

func (o *RBACSnapshotRequest) GetCollectionTimestampOk() (*int64, bool)

GetCollectionTimestampOk returns a tuple with the CollectionTimestamp field value and a boolean to check if the value has been set.

func (*RBACSnapshotRequest) GetRbacData

func (o *RBACSnapshotRequest) GetRbacData() []RbacData

GetRbacData returns the RbacData field value

func (*RBACSnapshotRequest) GetRbacDataOk

func (o *RBACSnapshotRequest) GetRbacDataOk() ([]RbacData, bool)

GetRbacDataOk returns a tuple with the RbacData field value and a boolean to check if the value has been set.

func (*RBACSnapshotRequest) GetSequence

func (o *RBACSnapshotRequest) GetSequence() int32

GetSequence returns the Sequence field value

func (*RBACSnapshotRequest) GetSequenceOk

func (o *RBACSnapshotRequest) GetSequenceOk() (*int32, bool)

GetSequenceOk returns a tuple with the Sequence field value and a boolean to check if the value has been set.

func (*RBACSnapshotRequest) GetStartSnapshot

func (o *RBACSnapshotRequest) GetStartSnapshot() StartSnapshot

GetStartSnapshot returns the StartSnapshot field value if set, zero value otherwise.

func (*RBACSnapshotRequest) GetStartSnapshotOk

func (o *RBACSnapshotRequest) GetStartSnapshotOk() (*StartSnapshot, bool)

GetStartSnapshotOk returns a tuple with the StartSnapshot field value if set, nil otherwise and a boolean to check if the value has been set.

func (*RBACSnapshotRequest) GetStopSnapshot

func (o *RBACSnapshotRequest) GetStopSnapshot() map[string]interface{}

GetStopSnapshot returns the StopSnapshot field value if set, zero value otherwise.

func (*RBACSnapshotRequest) GetStopSnapshotOk

func (o *RBACSnapshotRequest) GetStopSnapshotOk() (map[string]interface{}, bool)

GetStopSnapshotOk returns a tuple with the StopSnapshot field value if set, nil otherwise and a boolean to check if the value has been set.

func (*RBACSnapshotRequest) GetType

func (o *RBACSnapshotRequest) GetType() string

GetType returns the Type field value

func (*RBACSnapshotRequest) GetTypeOk

func (o *RBACSnapshotRequest) GetTypeOk() (*string, bool)

GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.

func (*RBACSnapshotRequest) HasStartSnapshot

func (o *RBACSnapshotRequest) HasStartSnapshot() bool

HasStartSnapshot returns a boolean if a field has been set.

func (*RBACSnapshotRequest) HasStopSnapshot

func (o *RBACSnapshotRequest) HasStopSnapshot() bool

HasStopSnapshot returns a boolean if a field has been set.

func (RBACSnapshotRequest) MarshalJSON

func (o RBACSnapshotRequest) MarshalJSON() ([]byte, error)

func (*RBACSnapshotRequest) SetCluster

func (o *RBACSnapshotRequest) SetCluster(v string)

SetCluster sets field value

func (*RBACSnapshotRequest) SetCollectionTimestamp

func (o *RBACSnapshotRequest) SetCollectionTimestamp(v int64)

SetCollectionTimestamp sets field value

func (*RBACSnapshotRequest) SetRbacData

func (o *RBACSnapshotRequest) SetRbacData(v []RbacData)

SetRbacData sets field value

func (*RBACSnapshotRequest) SetSequence

func (o *RBACSnapshotRequest) SetSequence(v int32)

SetSequence sets field value

func (*RBACSnapshotRequest) SetStartSnapshot

func (o *RBACSnapshotRequest) SetStartSnapshot(v StartSnapshot)

SetStartSnapshot gets a reference to the given StartSnapshot and assigns it to the StartSnapshot field.

func (*RBACSnapshotRequest) SetStopSnapshot

func (o *RBACSnapshotRequest) SetStopSnapshot(v map[string]interface{})

SetStopSnapshot gets a reference to the given map[string]interface{} and assigns it to the StopSnapshot field.

func (*RBACSnapshotRequest) SetType

func (o *RBACSnapshotRequest) SetType(v string)

SetType sets field value

type RbacData

type RbacData struct {
	ClusterRole        *ClusterRole
	ClusterRoleBinding *ClusterRoleBinding
	Role               *Role
	RoleBinding        *RoleBinding
}

RbacData - struct for RbacData

func ClusterRoleAsRbacData

func ClusterRoleAsRbacData(v *ClusterRole) RbacData

ClusterRoleAsRbacData is a convenience function that returns ClusterRole wrapped in RbacData

func ClusterRoleBindingAsRbacData

func ClusterRoleBindingAsRbacData(v *ClusterRoleBinding) RbacData

ClusterRoleBindingAsRbacData is a convenience function that returns ClusterRoleBinding wrapped in RbacData

func RoleAsRbacData

func RoleAsRbacData(v *Role) RbacData

RoleAsRbacData is a convenience function that returns Role wrapped in RbacData

func RoleBindingAsRbacData

func RoleBindingAsRbacData(v *RoleBinding) RbacData

RoleBindingAsRbacData is a convenience function that returns RoleBinding wrapped in RbacData

func (*RbacData) GetActualInstance

func (obj *RbacData) GetActualInstance() interface{}

Get the actual instance

func (RbacData) MarshalJSON

func (src RbacData) MarshalJSON() ([]byte, error)

Marshal data from the first non-nil pointers in the struct to JSON

func (*RbacData) UnmarshalJSON

func (dst *RbacData) UnmarshalJSON(data []byte) error

Unmarshal JSON data into one of the pointers in the struct

type RbacDataChanges

type RbacDataChanges struct {
	CreateRbacData *CreateRbacData
	DeleteRbacData *DeleteRbacData
	UpdateRbacData *UpdateRbacData
}

RbacDataChanges - struct for RbacDataChanges

func CreateRbacDataAsRbacDataChanges

func CreateRbacDataAsRbacDataChanges(v *CreateRbacData) RbacDataChanges

CreateRbacDataAsRbacDataChanges is a convenience function that returns CreateRbacData wrapped in RbacDataChanges

func DeleteRbacDataAsRbacDataChanges

func DeleteRbacDataAsRbacDataChanges(v *DeleteRbacData) RbacDataChanges

DeleteRbacDataAsRbacDataChanges is a convenience function that returns DeleteRbacData wrapped in RbacDataChanges

func UpdateRbacDataAsRbacDataChanges

func UpdateRbacDataAsRbacDataChanges(v *UpdateRbacData) RbacDataChanges

UpdateRbacDataAsRbacDataChanges is a convenience function that returns UpdateRbacData wrapped in RbacDataChanges

func (*RbacDataChanges) GetActualInstance

func (obj *RbacDataChanges) GetActualInstance() interface{}

Get the actual instance

func (RbacDataChanges) MarshalJSON

func (src RbacDataChanges) MarshalJSON() ([]byte, error)

Marshal data from the first non-nil pointers in the struct to JSON

func (*RbacDataChanges) UnmarshalJSON

func (dst *RbacDataChanges) UnmarshalJSON(data []byte) error

Unmarshal JSON data into one of the pointers in the struct

type ReceiverRbacInstanceAPI

type ReceiverRbacInstanceAPI interface {

	/*
		IngestInstanceRBAC Create instance RBAC objects

		Ingest RBAC data snapshots to build a scoped authorization model for data access for the server API

		@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
		@return ApiIngestInstanceRBACRequest
	*/
	IngestInstanceRBAC(ctx context.Context) ApiIngestInstanceRBACRequest

	// IngestInstanceRBACExecute executes the request
	IngestInstanceRBACExecute(r ApiIngestInstanceRBACRequest) (*http.Response, error)
}

type ReceiverRbacInstanceAPIMock

type ReceiverRbacInstanceAPIMock struct {
	IngestInstanceRBACCalls    *[]IngestInstanceRBACCall
	IngestInstanceRBACResponse IngestInstanceRBACMockResponse
}

func NewReceiverRbacInstanceAPIMock

func NewReceiverRbacInstanceAPIMock() ReceiverRbacInstanceAPIMock

func (ReceiverRbacInstanceAPIMock) IngestInstanceRBAC

func (ReceiverRbacInstanceAPIMock) IngestInstanceRBACExecute

func (mock ReceiverRbacInstanceAPIMock) IngestInstanceRBACExecute(r ApiIngestInstanceRBACRequest) (*http.Response, error)

type ReceiverRbacInstanceAPIService

type ReceiverRbacInstanceAPIService service

ReceiverRbacInstanceAPIService ReceiverRbacInstanceAPI service

func (*ReceiverRbacInstanceAPIService) IngestInstanceRBAC

IngestInstanceRBAC Create instance RBAC objects

Ingest RBAC data snapshots to build a scoped authorization model for data access for the server API

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiIngestInstanceRBACRequest

func (*ReceiverRbacInstanceAPIService) IngestInstanceRBACExecute

Execute executes the request

type ReceiverRbacScopeAPI

type ReceiverRbacScopeAPI interface {

	/*
		IngestScopeRBAC Create scope RBAC objects

		Ingest RBAC data snapshots to build a scoped authorization model for data access for the server API

		@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
		@return ApiIngestScopeRBACRequest
	*/
	IngestScopeRBAC(ctx context.Context) ApiIngestScopeRBACRequest

	// IngestScopeRBACExecute executes the request
	IngestScopeRBACExecute(r ApiIngestScopeRBACRequest) (*http.Response, error)
}

type ReceiverRbacScopeAPIMock

type ReceiverRbacScopeAPIMock struct {
	IngestScopeRBACCalls    *[]IngestScopeRBACCall
	IngestScopeRBACResponse IngestScopeRBACMockResponse
}

func NewReceiverRbacScopeAPIMock

func NewReceiverRbacScopeAPIMock() ReceiverRbacScopeAPIMock

func (ReceiverRbacScopeAPIMock) IngestScopeRBAC

func (ReceiverRbacScopeAPIMock) IngestScopeRBACExecute

func (mock ReceiverRbacScopeAPIMock) IngestScopeRBACExecute(r ApiIngestScopeRBACRequest) (*http.Response, error)

type ReceiverRbacScopeAPIService

type ReceiverRbacScopeAPIService service

ReceiverRbacScopeAPIService ReceiverRbacScopeAPI service

func (*ReceiverRbacScopeAPIService) IngestScopeRBAC

IngestScopeRBAC Create scope RBAC objects

Ingest RBAC data snapshots to build a scoped authorization model for data access for the server API

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiIngestScopeRBACRequest

func (*ReceiverRbacScopeAPIService) IngestScopeRBACExecute

func (a *ReceiverRbacScopeAPIService) IngestScopeRBACExecute(r ApiIngestScopeRBACRequest) (*http.Response, error)

Execute executes the request

type Role

type Role struct {
	// Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated.
	Kind     string     `json:"kind"`
	Metadata ObjectMeta `json:"metadata"`
	// Rules holds all the PolicyRules for this Role.
	Rules []PolicyRule `json:"rules,omitempty"`
}

Role Role is a namespaced, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding.

func NewRole

func NewRole(kind string, metadata ObjectMeta) *Role

NewRole instantiates a new Role object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewRoleWithDefaults

func NewRoleWithDefaults() *Role

NewRoleWithDefaults instantiates a new Role object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*Role) GetKind

func (o *Role) GetKind() string

GetKind returns the Kind field value

func (*Role) GetKindOk

func (o *Role) GetKindOk() (*string, bool)

GetKindOk returns a tuple with the Kind field value and a boolean to check if the value has been set.

func (*Role) GetMetadata

func (o *Role) GetMetadata() ObjectMeta

GetMetadata returns the Metadata field value

func (*Role) GetMetadataOk

func (o *Role) GetMetadataOk() (*ObjectMeta, bool)

GetMetadataOk returns a tuple with the Metadata field value and a boolean to check if the value has been set.

func (*Role) GetRules

func (o *Role) GetRules() []PolicyRule

GetRules returns the Rules field value if set, zero value otherwise.

func (*Role) GetRulesOk

func (o *Role) GetRulesOk() ([]PolicyRule, bool)

GetRulesOk returns a tuple with the Rules field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Role) HasRules

func (o *Role) HasRules() bool

HasRules returns a boolean if a field has been set.

func (Role) MarshalJSON

func (o Role) MarshalJSON() ([]byte, error)

func (*Role) SetKind

func (o *Role) SetKind(v string)

SetKind sets field value

func (*Role) SetMetadata

func (o *Role) SetMetadata(v ObjectMeta)

SetMetadata sets field value

func (*Role) SetRules

func (o *Role) SetRules(v []PolicyRule)

SetRules gets a reference to the given []PolicyRule and assigns it to the Rules field.

type RoleBinding

type RoleBinding struct {
	// Kind is a string value representing the REST resource this object represents.
	Kind     string     `json:"kind"`
	Metadata ObjectMeta `json:"metadata"`
	RoleRef  RoleRef    `json:"roleRef"`
	// Subjects holds references to the objects the role applies to.
	Subjects []Subject `json:"subjects,omitempty"`
}

RoleBinding RoleBinding references a Role in the same namespace or a ClusterRole in the global namespace. It adds who information via Subjects and namespace information by which namespace it exists in.

func NewRoleBinding

func NewRoleBinding(kind string, metadata ObjectMeta, roleRef RoleRef) *RoleBinding

NewRoleBinding instantiates a new RoleBinding object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewRoleBindingWithDefaults

func NewRoleBindingWithDefaults() *RoleBinding

NewRoleBindingWithDefaults instantiates a new RoleBinding object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*RoleBinding) GetKind

func (o *RoleBinding) GetKind() string

GetKind returns the Kind field value

func (*RoleBinding) GetKindOk

func (o *RoleBinding) GetKindOk() (*string, bool)

GetKindOk returns a tuple with the Kind field value and a boolean to check if the value has been set.

func (*RoleBinding) GetMetadata

func (o *RoleBinding) GetMetadata() ObjectMeta

GetMetadata returns the Metadata field value

func (*RoleBinding) GetMetadataOk

func (o *RoleBinding) GetMetadataOk() (*ObjectMeta, bool)

GetMetadataOk returns a tuple with the Metadata field value and a boolean to check if the value has been set.

func (*RoleBinding) GetRoleRef

func (o *RoleBinding) GetRoleRef() RoleRef

GetRoleRef returns the RoleRef field value

func (*RoleBinding) GetRoleRefOk

func (o *RoleBinding) GetRoleRefOk() (*RoleRef, bool)

GetRoleRefOk returns a tuple with the RoleRef field value and a boolean to check if the value has been set.

func (*RoleBinding) GetSubjects

func (o *RoleBinding) GetSubjects() []Subject

GetSubjects returns the Subjects field value if set, zero value otherwise.

func (*RoleBinding) GetSubjectsOk

func (o *RoleBinding) GetSubjectsOk() ([]Subject, bool)

GetSubjectsOk returns a tuple with the Subjects field value if set, nil otherwise and a boolean to check if the value has been set.

func (*RoleBinding) HasSubjects

func (o *RoleBinding) HasSubjects() bool

HasSubjects returns a boolean if a field has been set.

func (RoleBinding) MarshalJSON

func (o RoleBinding) MarshalJSON() ([]byte, error)

func (*RoleBinding) SetKind

func (o *RoleBinding) SetKind(v string)

SetKind sets field value

func (*RoleBinding) SetMetadata

func (o *RoleBinding) SetMetadata(v ObjectMeta)

SetMetadata sets field value

func (*RoleBinding) SetRoleRef

func (o *RoleBinding) SetRoleRef(v RoleRef)

SetRoleRef sets field value

func (*RoleBinding) SetSubjects

func (o *RoleBinding) SetSubjects(v []Subject)

SetSubjects gets a reference to the given []Subject and assigns it to the Subjects field.

type RoleRef

type RoleRef struct {
	// APIGroup is the group for the resource being referenced
	ApiGroup string `json:"apiGroup"`
	// Kind is the type of resource being referenced
	Kind string `json:"kind"`
	// Name is the name of resource being referenced
	Name string `json:"name"`
}

RoleRef RoleRef contains information that points to the role being used

func NewRoleRef

func NewRoleRef(apiGroup string, kind string, name string) *RoleRef

NewRoleRef instantiates a new RoleRef object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewRoleRefWithDefaults

func NewRoleRefWithDefaults() *RoleRef

NewRoleRefWithDefaults instantiates a new RoleRef object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*RoleRef) GetApiGroup

func (o *RoleRef) GetApiGroup() string

GetApiGroup returns the ApiGroup field value

func (*RoleRef) GetApiGroupOk

func (o *RoleRef) GetApiGroupOk() (*string, bool)

GetApiGroupOk returns a tuple with the ApiGroup field value and a boolean to check if the value has been set.

func (*RoleRef) GetKind

func (o *RoleRef) GetKind() string

GetKind returns the Kind field value

func (*RoleRef) GetKindOk

func (o *RoleRef) GetKindOk() (*string, bool)

GetKindOk returns a tuple with the Kind field value and a boolean to check if the value has been set.

func (*RoleRef) GetName

func (o *RoleRef) GetName() string

GetName returns the Name field value

func (*RoleRef) GetNameOk

func (o *RoleRef) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.

func (RoleRef) MarshalJSON

func (o RoleRef) MarshalJSON() ([]byte, error)

func (*RoleRef) SetApiGroup

func (o *RoleRef) SetApiGroup(v string)

SetApiGroup sets field value

func (*RoleRef) SetKind

func (o *RoleRef) SetKind(v string)

SetKind sets field value

func (*RoleRef) SetName

func (o *RoleRef) SetName(v string)

SetName sets field value

type ServerConfiguration

type ServerConfiguration struct {
	URL         string
	Description string
	Variables   map[string]ServerVariable
}

ServerConfiguration stores the information about a server

type ServerConfigurations

type ServerConfigurations []ServerConfiguration

ServerConfigurations stores multiple ServerConfiguration items

func (ServerConfigurations) URL

func (sc ServerConfigurations) URL(index int, variables map[string]string) (string, error)

URL formats template on a index using given variables

type ServerVariable

type ServerVariable struct {
	Description  string
	DefaultValue string
	EnumValues   []string
}

ServerVariable stores the information about a server variable

type StartSnapshot

type StartSnapshot struct {
	// Number of seconds when the RBAC Agent will send the following snapshot. Heartbeat of the Agent
	RepeatIntervalS *int64 `json:"repeat_interval_s,omitempty"`
}

StartSnapshot Object that signals that the RBAC data belongs to a new Snapshot

func NewStartSnapshot

func NewStartSnapshot() *StartSnapshot

NewStartSnapshot instantiates a new StartSnapshot object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewStartSnapshotWithDefaults

func NewStartSnapshotWithDefaults() *StartSnapshot

NewStartSnapshotWithDefaults instantiates a new StartSnapshot object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*StartSnapshot) GetRepeatIntervalS

func (o *StartSnapshot) GetRepeatIntervalS() int64

GetRepeatIntervalS returns the RepeatIntervalS field value if set, zero value otherwise.

func (*StartSnapshot) GetRepeatIntervalSOk

func (o *StartSnapshot) GetRepeatIntervalSOk() (*int64, bool)

GetRepeatIntervalSOk returns a tuple with the RepeatIntervalS field value if set, nil otherwise and a boolean to check if the value has been set.

func (*StartSnapshot) HasRepeatIntervalS

func (o *StartSnapshot) HasRepeatIntervalS() bool

HasRepeatIntervalS returns a boolean if a field has been set.

func (StartSnapshot) MarshalJSON

func (o StartSnapshot) MarshalJSON() ([]byte, error)

func (*StartSnapshot) SetRepeatIntervalS

func (o *StartSnapshot) SetRepeatIntervalS(v int64)

SetRepeatIntervalS gets a reference to the given int64 and assigns it to the RepeatIntervalS field.

type Subject

type Subject struct {
	// APIGroup holds the API group of the referenced subject.
	ApiGroup *string `json:"apiGroup,omitempty"`
	// Kind of object being referenced.
	Kind string `json:"kind"`
	// Name of the object being referenced.
	Name string `json:"name"`
	// Namespace of the referenced object.
	Namespace *string `json:"namespace,omitempty"`
}

Subject Subject contains a reference to the object or user identities a role binding applies to.

func NewSubject

func NewSubject(kind string, name string) *Subject

NewSubject instantiates a new Subject object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewSubjectWithDefaults

func NewSubjectWithDefaults() *Subject

NewSubjectWithDefaults instantiates a new Subject object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*Subject) GetApiGroup

func (o *Subject) GetApiGroup() string

GetApiGroup returns the ApiGroup field value if set, zero value otherwise.

func (*Subject) GetApiGroupOk

func (o *Subject) GetApiGroupOk() (*string, bool)

GetApiGroupOk returns a tuple with the ApiGroup field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Subject) GetKind

func (o *Subject) GetKind() string

GetKind returns the Kind field value

func (*Subject) GetKindOk

func (o *Subject) GetKindOk() (*string, bool)

GetKindOk returns a tuple with the Kind field value and a boolean to check if the value has been set.

func (*Subject) GetName

func (o *Subject) GetName() string

GetName returns the Name field value

func (*Subject) GetNameOk

func (o *Subject) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.

func (*Subject) GetNamespace

func (o *Subject) GetNamespace() string

GetNamespace returns the Namespace field value if set, zero value otherwise.

func (*Subject) GetNamespaceOk

func (o *Subject) GetNamespaceOk() (*string, bool)

GetNamespaceOk returns a tuple with the Namespace field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Subject) HasApiGroup

func (o *Subject) HasApiGroup() bool

HasApiGroup returns a boolean if a field has been set.

func (*Subject) HasNamespace

func (o *Subject) HasNamespace() bool

HasNamespace returns a boolean if a field has been set.

func (Subject) MarshalJSON

func (o Subject) MarshalJSON() ([]byte, error)

func (*Subject) SetApiGroup

func (o *Subject) SetApiGroup(v string)

SetApiGroup gets a reference to the given string and assigns it to the ApiGroup field.

func (*Subject) SetKind

func (o *Subject) SetKind(v string)

SetKind sets field value

func (*Subject) SetName

func (o *Subject) SetName(v string)

SetName sets field value

func (*Subject) SetNamespace

func (o *Subject) SetNamespace(v string)

SetNamespace gets a reference to the given string and assigns it to the Namespace field.

type UpdateRbacData

type UpdateRbacData struct {
	Type     string   `json:"_type"`
	Resource RbacData `json:"resource"`
}

UpdateRbacData Defines a RBAC resource that needs to be updated

func NewUpdateRbacData

func NewUpdateRbacData(type_ string, resource RbacData) *UpdateRbacData

NewUpdateRbacData instantiates a new UpdateRbacData object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewUpdateRbacDataWithDefaults

func NewUpdateRbacDataWithDefaults() *UpdateRbacData

NewUpdateRbacDataWithDefaults instantiates a new UpdateRbacData object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*UpdateRbacData) GetResource

func (o *UpdateRbacData) GetResource() RbacData

GetResource returns the Resource field value

func (*UpdateRbacData) GetResourceOk

func (o *UpdateRbacData) GetResourceOk() (*RbacData, bool)

GetResourceOk returns a tuple with the Resource field value and a boolean to check if the value has been set.

func (*UpdateRbacData) GetType

func (o *UpdateRbacData) GetType() string

GetType returns the Type field value

func (*UpdateRbacData) GetTypeOk

func (o *UpdateRbacData) GetTypeOk() (*string, bool)

GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.

func (UpdateRbacData) MarshalJSON

func (o UpdateRbacData) MarshalJSON() ([]byte, error)

func (*UpdateRbacData) SetResource

func (o *UpdateRbacData) SetResource(v RbacData)

SetResource sets field value

func (*UpdateRbacData) SetType

func (o *UpdateRbacData) SetType(v string)

SetType sets field value

Jump to

Keyboard shortcuts

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