Skip to content

authorization.v1.resourceAccessReview

"ResourceAccessReview is a means to request a list of which users and groups are authorized to perform the action specified by spec"

Index

Fields

fn new

new(name)

new returns an instance of ResourceAccessReview

fn withIsNonResourceURL

withIsNonResourceURL(isNonResourceURL)

"IsNonResourceURL is true if this is a request for a non-resource URL (outside of the resource hierarchy)"

fn withNamespace

withNamespace(namespace)

"Namespace is the namespace of the action being requested. Currently, there is no distinction between no namespace and all namespaces"

fn withPath

withPath(path)

"Path is the path of a non resource URL"

fn withResource

withResource(resource)

"Resource is one of the existing resource types"

fn withResourceAPIGroup

withResourceAPIGroup(resourceAPIGroup)

"Group is the API group of the resource Serialized as resourceAPIGroup to avoid confusion with the 'groups' field when inlined"

fn withResourceAPIVersion

withResourceAPIVersion(resourceAPIVersion)

"Version is the API version of the resource Serialized as resourceAPIVersion to avoid confusion with TypeMeta.apiVersion and ObjectMeta.resourceVersion when inlined"

fn withResourceName

withResourceName(resourceName)

"ResourceName is the name of the resource being requested for a \"get\" or deleted for a \"delete\

fn withVerb

withVerb(verb)

"Verb is one of: get, list, watch, create, update, delete"

obj content

"RawExtension is used to hold extensions in external versions.\n\nTo use this, make a field which has RawExtension as its type in your external, versioned struct, and Object in your internal struct. You also need to register your various plugin types.\n\n// Internal package: type MyAPIObject struct {\n\truntime.TypeMeta json:\",inline\"\n\tMyPlugin runtime.Object json:\"myPlugin\"\n} type PluginA struct {\n\tAOption string json:\"aOption\"\n}\n\n// External package: type MyAPIObject struct {\n\truntime.TypeMeta json:\",inline\"\n\tMyPlugin runtime.RawExtension json:\"myPlugin\"\n} type PluginA struct {\n\tAOption string json:\"aOption\"\n}\n\n// On the wire, the JSON will look something like this: {\n\t\"kind\":\"MyAPIObject\",\n\t\"apiVersion\":\"v1\",\n\t\"myPlugin\": {\n\t\t\"kind\":\"PluginA\",\n\t\t\"aOption\":\"foo\",\n\t},\n}\n\nSo what happens? Decode first uses json or yaml to unmarshal the serialized data into your external MyAPIObject. That causes the raw JSON to be stored, but not unpacked. The next step is to copy (using pkg/conversion) into the internal struct. The runtime package's DefaultScheme has conversion functions installed which will unpack the JSON stored in RawExtension, turning it into the correct object type, and storing it in the Object. (TODO: In the case where the object is of an unknown type, a runtime.Unknown object will be created and stored.)"

fn content.withRaw

withRaw(raw)

"Raw is the underlying serialization of this object."