{"modulePath":"github.phpd.cn/openshift/origin","version":"v1.5.1","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package api\n\nPackage api is the internal version of the API.\n\n## Constants\n\n```go\nconst GroupName = \"\"\n```\n\n## Variables\n\n```go\nvar (\n\tSchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)\n\tAddToScheme   = SchemeBuilder.AddToScheme\n)\n```\n\n```go\nvar SchemeGroupVersion = unversioned.GroupVersion{Group: GroupName, Version: runtime.APIVersionInternal}\n```\nSchemeGroupVersion is group version used to register these objects\n\n## Functions\n\n```go\nfunc DeepCopy_api_PodSecurityPolicyReview(in interface{}, out interface{}, c *conversion.Cloner) error\n```\n\n```go\nfunc DeepCopy_api_PodSecurityPolicyReviewSpec(in interface{}, out interface{}, c *conversion.Cloner) error\n```\n\n```go\nfunc DeepCopy_api_PodSecurityPolicyReviewStatus(in interface{}, out interface{}, c *conversion.Cloner) error\n```\n\n```go\nfunc DeepCopy_api_PodSecurityPolicySelfSubjectReview(in interface{}, out interface{}, c *conversion.Cloner) error\n```\n\n```go\nfunc DeepCopy_api_PodSecurityPolicySelfSubjectReviewSpec(in interface{}, out interface{}, c *conversion.Cloner) error\n```\n\n```go\nfunc DeepCopy_api_PodSecurityPolicySubjectReview(in interface{}, out interface{}, c *conversion.Cloner) error\n```\n\n```go\nfunc DeepCopy_api_PodSecurityPolicySubjectReviewSpec(in interface{}, out interface{}, c *conversion.Cloner) error\n```\n\n```go\nfunc DeepCopy_api_PodSecurityPolicySubjectReviewStatus(in interface{}, out interface{}, c *conversion.Cloner) error\n```\n\n```go\nfunc DeepCopy_api_ServiceAccountPodSecurityPolicyReviewStatus(in interface{}, out interface{}, c *conversion.Cloner) error\n```\n\n```go\nfunc Kind(kind string) unversioned.GroupKind\n```\nKind takes an unqualified kind and returns back a Group qualified GroupKind\n\n```go\nfunc RegisterDeepCopies(scheme *runtime.Scheme) error\n```\nRegisterDeepCopies adds deep-copy functions to the given scheme. Public to allow building arbitrary schemes.\n\n```go\nfunc Resource(resource string) unversioned.GroupResource\n```\nResource takes an unqualified resource and returns back a Group qualified GroupResource\n\n## Types\n\n```go\ntype PodSecurityPolicyReview struct {\n\tunversioned.TypeMeta\n\n\t// Spec is the PodSecurityPolicy to check.\n\tSpec PodSecurityPolicyReviewSpec\n\n\t// Status represents the current information/status for the PodSecurityPolicyReview.\n\tStatus PodSecurityPolicyReviewStatus\n}\n```\nPodSecurityPolicyReview checks which service accounts (not users, since that would be cluster-wide) can create the \\`PodTemplateSpec\\` in question.\n\n```go\nfunc (obj *PodSecurityPolicyReview) GetObjectKind() unversioned.ObjectKind\n```\n\n```go\ntype PodSecurityPolicyReviewSpec struct {\n\t// Template is the PodTemplateSpec to check. The PodTemplateSpec.Spec.ServiceAccountName field is used\n\t// if ServiceAccountNames is empty, unless the PodTemplateSpec.Spec.ServiceAccountName is empty,\n\t// in which case \"default\" is used.\n\t// If ServiceAccountNames is specified, PodTemplateSpec.Spec.ServiceAccountName is ignored.\n\tTemplate kapi.PodTemplateSpec\n\n\t// ServiceAccountNames is an optional set of ServiceAccounts to run the check with.\n\t// If ServiceAccountNames is empty, the PodTemplateSpec.Spec.ServiceAccountName is used,\n\t// unless it's empty, in which case \"default\" is used instead.\n\t// If ServiceAccountNames is specified, PodTemplateSpec.Spec.ServiceAccountName is ignored.\n\tServiceAccountNames []string // TODO: find a way to express 'all service accounts'\n}\n```\nPodSecurityPolicyReviewSpec defines specification for PodSecurityPolicyReview\n\n```go\ntype PodSecurityPolicyReviewStatus struct {\n\t// AllowedServiceAccounts returns the list of service accounts in *this* namespace that have the power to create the PodTemplateSpec.\n\tAllowedServiceAccounts []ServiceAccountPodSecurityPolicyReviewStatus\n}\n```\nPodSecurityPolicyReviewStatus represents the status of PodSecurityPolicyReview.\n\n```go\ntype PodSecurityPolicySelfSubjectReview struct {\n\tunversioned.TypeMeta\n\n\t// Spec defines specification the PodSecurityPolicySelfSubjectReview.\n\tSpec PodSecurityPolicySelfSubjectReviewSpec\n\n\t// Status represents the current information/status for the PodSecurityPolicySelfSubjectReview.\n\tStatus PodSecurityPolicySubjectReviewStatus\n}\n```\nPodSecurityPolicySelfSubjectReview checks whether this user/SA tuple can create the PodTemplateSpec.\n\n```go\nfunc (obj *PodSecurityPolicySelfSubjectReview) GetObjectKind() unversioned.ObjectKind\n```\n\n```go\ntype PodSecurityPolicySelfSubjectReviewSpec struct {\n\t// Template is the PodTemplateSpec to check.\n\tTemplate kapi.PodTemplateSpec\n}\n```\nPodSecurityPolicySelfSubjectReviewSpec contains specification for PodSecurityPolicySelfSubjectReview.\n\n```go\ntype PodSecurityPolicySubjectReview struct {\n\tunversioned.TypeMeta\n\n\t// Spec defines specification for the PodSecurityPolicySubjectReview.\n\tSpec PodSecurityPolicySubjectReviewSpec\n\n\t// Status represents the current information/status for the PodSecurityPolicySubjectReview.\n\tStatus PodSecurityPolicySubjectReviewStatus\n}\n```\nPodSecurityPolicySubjectReview checks whether a particular user/SA tuple can create the PodTemplateSpec.\n\n```go\nfunc (obj *PodSecurityPolicySubjectReview) GetObjectKind() unversioned.ObjectKind\n```\n\n```go\ntype PodSecurityPolicySubjectReviewSpec struct {\n\t// Template is the PodTemplateSpec to check. If PodTemplateSpec.Spec.ServiceAccountName is empty it will not be defaulted.\n\t// If its non-empty, it will be checked.\n\tTemplate kapi.PodTemplateSpec\n\n\t// User is the user you're testing for.\n\t// If you specify \"User\" but not \"Group\", then is it interpreted as \"What if User were not a member of any groups.\n\t// If User and Groups are empty, then the check is performed using *only* the ServiceAccountName in the PodTemplateSpec.\n\tUser string\n\n\t// Groups is the groups you're testing for.\n\tGroups []string\n}\n```\nPodSecurityPolicySubjectReviewSpec defines specification for PodSecurityPolicySubjectReview\n\n```go\ntype PodSecurityPolicySubjectReviewStatus struct {\n\t// AllowedBy is a reference to the rule that allows the PodTemplateSpec.\n\t// A rule can be a SecurityContextConstraint or a PodSecurityPolicy\n\t// A `nil`, indicates that it was denied.\n\tAllowedBy *kapi.ObjectReference\n\n\t// A machine-readable description of why this operation is in the\n\t// \"Failure\" status. If this value is empty there\n\t// is no information available.\n\tReason string\n\n\t// Template is the PodTemplateSpec after the defaulting is applied.\n\tTemplate kapi.PodTemplateSpec\n}\n```\nPodSecurityPolicySubjectReviewStatus contains information/status for PodSecurityPolicySubjectReview.\n\n```go\ntype ServiceAccountPodSecurityPolicyReviewStatus struct {\n\tPodSecurityPolicySubjectReviewStatus\n\n\t// Name contains the allowed and the denied ServiceAccount name\n\tName string\n}\n```\nServiceAccountPodSecurityPolicyReviewStatus represents ServiceAccount name and related review status\n\n","path":"github.phpd.cn/openshift/origin/pkg/security/api","name":"api","synopsis":"Package api is the internal version of the API.","isRedistributable":true}
