...

Source file src/google.golang.org/genproto/googleapis/cloud/binaryauthorization/v1/alias.go

Documentation: google.golang.org/genproto/googleapis/cloud/binaryauthorization/v1

     1  // Copyright 2022 Google LLC
     2  //
     3  // Licensed under the Apache License, Version 2.0 (the "License");
     4  // you may not use this file except in compliance with the License.
     5  // You may obtain a copy of the License at
     6  //
     7  //     http://www.apache.org/licenses/LICENSE-2.0
     8  //
     9  // Unless required by applicable law or agreed to in writing, software
    10  // distributed under the License is distributed on an "AS IS" BASIS,
    11  // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    12  // See the License for the specific language governing permissions and
    13  // limitations under the License.
    14  
    15  // Code generated by aliasgen. DO NOT EDIT.
    16  
    17  // Package binaryauthorization aliases all exported identifiers in package
    18  // "cloud.google.com/go/binaryauthorization/apiv1/binaryauthorizationpb".
    19  //
    20  // Deprecated: Please use types in: cloud.google.com/go/binaryauthorization/apiv1/binaryauthorizationpb.
    21  // Please read https://github.com/googleapis/google-cloud-go/blob/main/migration.md
    22  // for more details.
    23  package binaryauthorization
    24  
    25  import (
    26  	src "cloud.google.com/go/binaryauthorization/apiv1/binaryauthorizationpb"
    27  	grpc "google.golang.org/grpc"
    28  )
    29  
    30  // Deprecated: Please use consts in: cloud.google.com/go/binaryauthorization/apiv1/binaryauthorizationpb
    31  const (
    32  	AdmissionRule_ALWAYS_ALLOW                                       = src.AdmissionRule_ALWAYS_ALLOW
    33  	AdmissionRule_ALWAYS_DENY                                        = src.AdmissionRule_ALWAYS_DENY
    34  	AdmissionRule_DRYRUN_AUDIT_LOG_ONLY                              = src.AdmissionRule_DRYRUN_AUDIT_LOG_ONLY
    35  	AdmissionRule_ENFORCED_BLOCK_AND_AUDIT_LOG                       = src.AdmissionRule_ENFORCED_BLOCK_AND_AUDIT_LOG
    36  	AdmissionRule_ENFORCEMENT_MODE_UNSPECIFIED                       = src.AdmissionRule_ENFORCEMENT_MODE_UNSPECIFIED
    37  	AdmissionRule_EVALUATION_MODE_UNSPECIFIED                        = src.AdmissionRule_EVALUATION_MODE_UNSPECIFIED
    38  	AdmissionRule_REQUIRE_ATTESTATION                                = src.AdmissionRule_REQUIRE_ATTESTATION
    39  	PkixPublicKey_ECDSA_P256_SHA256                                  = src.PkixPublicKey_ECDSA_P256_SHA256
    40  	PkixPublicKey_ECDSA_P384_SHA384                                  = src.PkixPublicKey_ECDSA_P384_SHA384
    41  	PkixPublicKey_ECDSA_P521_SHA512                                  = src.PkixPublicKey_ECDSA_P521_SHA512
    42  	PkixPublicKey_EC_SIGN_P256_SHA256                                = src.PkixPublicKey_EC_SIGN_P256_SHA256
    43  	PkixPublicKey_EC_SIGN_P384_SHA384                                = src.PkixPublicKey_EC_SIGN_P384_SHA384
    44  	PkixPublicKey_EC_SIGN_P521_SHA512                                = src.PkixPublicKey_EC_SIGN_P521_SHA512
    45  	PkixPublicKey_RSA_PSS_2048_SHA256                                = src.PkixPublicKey_RSA_PSS_2048_SHA256
    46  	PkixPublicKey_RSA_PSS_3072_SHA256                                = src.PkixPublicKey_RSA_PSS_3072_SHA256
    47  	PkixPublicKey_RSA_PSS_4096_SHA256                                = src.PkixPublicKey_RSA_PSS_4096_SHA256
    48  	PkixPublicKey_RSA_PSS_4096_SHA512                                = src.PkixPublicKey_RSA_PSS_4096_SHA512
    49  	PkixPublicKey_RSA_SIGN_PKCS1_2048_SHA256                         = src.PkixPublicKey_RSA_SIGN_PKCS1_2048_SHA256
    50  	PkixPublicKey_RSA_SIGN_PKCS1_3072_SHA256                         = src.PkixPublicKey_RSA_SIGN_PKCS1_3072_SHA256
    51  	PkixPublicKey_RSA_SIGN_PKCS1_4096_SHA256                         = src.PkixPublicKey_RSA_SIGN_PKCS1_4096_SHA256
    52  	PkixPublicKey_RSA_SIGN_PKCS1_4096_SHA512                         = src.PkixPublicKey_RSA_SIGN_PKCS1_4096_SHA512
    53  	PkixPublicKey_SIGNATURE_ALGORITHM_UNSPECIFIED                    = src.PkixPublicKey_SIGNATURE_ALGORITHM_UNSPECIFIED
    54  	Policy_DISABLE                                                   = src.Policy_DISABLE
    55  	Policy_ENABLE                                                    = src.Policy_ENABLE
    56  	Policy_GLOBAL_POLICY_EVALUATION_MODE_UNSPECIFIED                 = src.Policy_GLOBAL_POLICY_EVALUATION_MODE_UNSPECIFIED
    57  	ValidateAttestationOccurrenceResponse_ATTESTATION_NOT_VERIFIABLE = src.ValidateAttestationOccurrenceResponse_ATTESTATION_NOT_VERIFIABLE
    58  	ValidateAttestationOccurrenceResponse_RESULT_UNSPECIFIED         = src.ValidateAttestationOccurrenceResponse_RESULT_UNSPECIFIED
    59  	ValidateAttestationOccurrenceResponse_VERIFIED                   = src.ValidateAttestationOccurrenceResponse_VERIFIED
    60  )
    61  
    62  // Deprecated: Please use vars in: cloud.google.com/go/binaryauthorization/apiv1/binaryauthorizationpb
    63  var (
    64  	AdmissionRule_EnforcementMode_name                       = src.AdmissionRule_EnforcementMode_name
    65  	AdmissionRule_EnforcementMode_value                      = src.AdmissionRule_EnforcementMode_value
    66  	AdmissionRule_EvaluationMode_name                        = src.AdmissionRule_EvaluationMode_name
    67  	AdmissionRule_EvaluationMode_value                       = src.AdmissionRule_EvaluationMode_value
    68  	File_google_cloud_binaryauthorization_v1_resources_proto = src.File_google_cloud_binaryauthorization_v1_resources_proto
    69  	File_google_cloud_binaryauthorization_v1_service_proto   = src.File_google_cloud_binaryauthorization_v1_service_proto
    70  	PkixPublicKey_SignatureAlgorithm_name                    = src.PkixPublicKey_SignatureAlgorithm_name
    71  	PkixPublicKey_SignatureAlgorithm_value                   = src.PkixPublicKey_SignatureAlgorithm_value
    72  	Policy_GlobalPolicyEvaluationMode_name                   = src.Policy_GlobalPolicyEvaluationMode_name
    73  	Policy_GlobalPolicyEvaluationMode_value                  = src.Policy_GlobalPolicyEvaluationMode_value
    74  	ValidateAttestationOccurrenceResponse_Result_name        = src.ValidateAttestationOccurrenceResponse_Result_name
    75  	ValidateAttestationOccurrenceResponse_Result_value       = src.ValidateAttestationOccurrenceResponse_Result_value
    76  )
    77  
    78  // An [admission rule][google.cloud.binaryauthorization.v1.AdmissionRule]
    79  // specifies either that all container images used in a pod creation request
    80  // must be attested to by one or more
    81  // [attestors][google.cloud.binaryauthorization.v1.Attestor], that all pod
    82  // creations will be allowed, or that all pod creations will be denied. Images
    83  // matching an [admission allowlist
    84  // pattern][google.cloud.binaryauthorization.v1.AdmissionWhitelistPattern] are
    85  // exempted from admission rules and will never block a pod creation.
    86  //
    87  // Deprecated: Please use types in: cloud.google.com/go/binaryauthorization/apiv1/binaryauthorizationpb
    88  type AdmissionRule = src.AdmissionRule
    89  
    90  // Defines the possible actions when a pod creation is denied by an admission
    91  // rule.
    92  //
    93  // Deprecated: Please use types in: cloud.google.com/go/binaryauthorization/apiv1/binaryauthorizationpb
    94  type AdmissionRule_EnforcementMode = src.AdmissionRule_EnforcementMode
    95  type AdmissionRule_EvaluationMode = src.AdmissionRule_EvaluationMode
    96  
    97  // An [admission allowlist
    98  // pattern][google.cloud.binaryauthorization.v1.AdmissionWhitelistPattern]
    99  // exempts images from checks by [admission
   100  // rules][google.cloud.binaryauthorization.v1.AdmissionRule].
   101  //
   102  // Deprecated: Please use types in: cloud.google.com/go/binaryauthorization/apiv1/binaryauthorizationpb
   103  type AdmissionWhitelistPattern = src.AdmissionWhitelistPattern
   104  
   105  // An [attestor][google.cloud.binaryauthorization.v1.Attestor] that attests to
   106  // container image artifacts. An existing attestor cannot be modified except
   107  // where indicated.
   108  //
   109  // Deprecated: Please use types in: cloud.google.com/go/binaryauthorization/apiv1/binaryauthorizationpb
   110  type Attestor = src.Attestor
   111  
   112  // An [attestor public
   113  // key][google.cloud.binaryauthorization.v1.AttestorPublicKey] that will be
   114  // used to verify attestations signed by this attestor.
   115  //
   116  // Deprecated: Please use types in: cloud.google.com/go/binaryauthorization/apiv1/binaryauthorizationpb
   117  type AttestorPublicKey = src.AttestorPublicKey
   118  type AttestorPublicKey_AsciiArmoredPgpPublicKey = src.AttestorPublicKey_AsciiArmoredPgpPublicKey
   119  type AttestorPublicKey_PkixPublicKey = src.AttestorPublicKey_PkixPublicKey
   120  type Attestor_UserOwnedGrafeasNote = src.Attestor_UserOwnedGrafeasNote
   121  
   122  // BinauthzManagementServiceV1Client is the client API for
   123  // BinauthzManagementServiceV1 service. For semantics around ctx use and
   124  // closing/ending streaming RPCs, please refer to
   125  // https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
   126  //
   127  // Deprecated: Please use types in: cloud.google.com/go/binaryauthorization/apiv1/binaryauthorizationpb
   128  type BinauthzManagementServiceV1Client = src.BinauthzManagementServiceV1Client
   129  
   130  // BinauthzManagementServiceV1Server is the server API for
   131  // BinauthzManagementServiceV1 service.
   132  //
   133  // Deprecated: Please use types in: cloud.google.com/go/binaryauthorization/apiv1/binaryauthorizationpb
   134  type BinauthzManagementServiceV1Server = src.BinauthzManagementServiceV1Server
   135  
   136  // Request message for [BinauthzManagementService.CreateAttestor][].
   137  //
   138  // Deprecated: Please use types in: cloud.google.com/go/binaryauthorization/apiv1/binaryauthorizationpb
   139  type CreateAttestorRequest = src.CreateAttestorRequest
   140  
   141  // Request message for [BinauthzManagementService.DeleteAttestor][].
   142  //
   143  // Deprecated: Please use types in: cloud.google.com/go/binaryauthorization/apiv1/binaryauthorizationpb
   144  type DeleteAttestorRequest = src.DeleteAttestorRequest
   145  
   146  // Request message for [BinauthzManagementService.GetAttestor][].
   147  //
   148  // Deprecated: Please use types in: cloud.google.com/go/binaryauthorization/apiv1/binaryauthorizationpb
   149  type GetAttestorRequest = src.GetAttestorRequest
   150  
   151  // Request message for [BinauthzManagementService.GetPolicy][].
   152  //
   153  // Deprecated: Please use types in: cloud.google.com/go/binaryauthorization/apiv1/binaryauthorizationpb
   154  type GetPolicyRequest = src.GetPolicyRequest
   155  
   156  // Request to read the current system policy.
   157  //
   158  // Deprecated: Please use types in: cloud.google.com/go/binaryauthorization/apiv1/binaryauthorizationpb
   159  type GetSystemPolicyRequest = src.GetSystemPolicyRequest
   160  
   161  // Request message for [BinauthzManagementService.ListAttestors][].
   162  //
   163  // Deprecated: Please use types in: cloud.google.com/go/binaryauthorization/apiv1/binaryauthorizationpb
   164  type ListAttestorsRequest = src.ListAttestorsRequest
   165  
   166  // Response message for [BinauthzManagementService.ListAttestors][].
   167  //
   168  // Deprecated: Please use types in: cloud.google.com/go/binaryauthorization/apiv1/binaryauthorizationpb
   169  type ListAttestorsResponse = src.ListAttestorsResponse
   170  
   171  // A public key in the PkixPublicKey format (see
   172  // https://tools.ietf.org/html/rfc5280#section-4.1.2.7 for details). Public
   173  // keys of this type are typically textually encoded using the PEM format.
   174  //
   175  // Deprecated: Please use types in: cloud.google.com/go/binaryauthorization/apiv1/binaryauthorizationpb
   176  type PkixPublicKey = src.PkixPublicKey
   177  
   178  // Represents a signature algorithm and other information necessary to verify
   179  // signatures with a given public key. This is based primarily on the public
   180  // key types supported by Tink's PemKeyType, which is in turn based on KMS's
   181  // supported signing algorithms. See
   182  // https://cloud.google.com/kms/docs/algorithms. In the future, BinAuthz might
   183  // support additional public key types independently of Tink and/or KMS.
   184  //
   185  // Deprecated: Please use types in: cloud.google.com/go/binaryauthorization/apiv1/binaryauthorizationpb
   186  type PkixPublicKey_SignatureAlgorithm = src.PkixPublicKey_SignatureAlgorithm
   187  
   188  // A [policy][google.cloud.binaryauthorization.v1.Policy] for container image
   189  // binary authorization.
   190  //
   191  // Deprecated: Please use types in: cloud.google.com/go/binaryauthorization/apiv1/binaryauthorizationpb
   192  type Policy = src.Policy
   193  type Policy_GlobalPolicyEvaluationMode = src.Policy_GlobalPolicyEvaluationMode
   194  
   195  // SystemPolicyV1Client is the client API for SystemPolicyV1 service. For
   196  // semantics around ctx use and closing/ending streaming RPCs, please refer to
   197  // https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
   198  //
   199  // Deprecated: Please use types in: cloud.google.com/go/binaryauthorization/apiv1/binaryauthorizationpb
   200  type SystemPolicyV1Client = src.SystemPolicyV1Client
   201  
   202  // SystemPolicyV1Server is the server API for SystemPolicyV1 service.
   203  //
   204  // Deprecated: Please use types in: cloud.google.com/go/binaryauthorization/apiv1/binaryauthorizationpb
   205  type SystemPolicyV1Server = src.SystemPolicyV1Server
   206  
   207  // UnimplementedBinauthzManagementServiceV1Server can be embedded to have
   208  // forward compatible implementations.
   209  //
   210  // Deprecated: Please use types in: cloud.google.com/go/binaryauthorization/apiv1/binaryauthorizationpb
   211  type UnimplementedBinauthzManagementServiceV1Server = src.UnimplementedBinauthzManagementServiceV1Server
   212  
   213  // UnimplementedSystemPolicyV1Server can be embedded to have forward
   214  // compatible implementations.
   215  //
   216  // Deprecated: Please use types in: cloud.google.com/go/binaryauthorization/apiv1/binaryauthorizationpb
   217  type UnimplementedSystemPolicyV1Server = src.UnimplementedSystemPolicyV1Server
   218  
   219  // UnimplementedValidationHelperV1Server can be embedded to have forward
   220  // compatible implementations.
   221  //
   222  // Deprecated: Please use types in: cloud.google.com/go/binaryauthorization/apiv1/binaryauthorizationpb
   223  type UnimplementedValidationHelperV1Server = src.UnimplementedValidationHelperV1Server
   224  
   225  // Request message for [BinauthzManagementService.UpdateAttestor][].
   226  //
   227  // Deprecated: Please use types in: cloud.google.com/go/binaryauthorization/apiv1/binaryauthorizationpb
   228  type UpdateAttestorRequest = src.UpdateAttestorRequest
   229  
   230  // Request message for [BinauthzManagementService.UpdatePolicy][].
   231  //
   232  // Deprecated: Please use types in: cloud.google.com/go/binaryauthorization/apiv1/binaryauthorizationpb
   233  type UpdatePolicyRequest = src.UpdatePolicyRequest
   234  
   235  // An [user owned Grafeas
   236  // note][google.cloud.binaryauthorization.v1.UserOwnedGrafeasNote] references a
   237  // Grafeas Attestation.Authority Note created by the user.
   238  //
   239  // Deprecated: Please use types in: cloud.google.com/go/binaryauthorization/apiv1/binaryauthorizationpb
   240  type UserOwnedGrafeasNote = src.UserOwnedGrafeasNote
   241  
   242  // Request message for
   243  // [ValidationHelperV1.ValidateAttestationOccurrence][google.cloud.binaryauthorization.v1.ValidationHelperV1.ValidateAttestationOccurrence].
   244  //
   245  // Deprecated: Please use types in: cloud.google.com/go/binaryauthorization/apiv1/binaryauthorizationpb
   246  type ValidateAttestationOccurrenceRequest = src.ValidateAttestationOccurrenceRequest
   247  
   248  // Response message for
   249  // [ValidationHelperV1.ValidateAttestationOccurrence][google.cloud.binaryauthorization.v1.ValidationHelperV1.ValidateAttestationOccurrence].
   250  //
   251  // Deprecated: Please use types in: cloud.google.com/go/binaryauthorization/apiv1/binaryauthorizationpb
   252  type ValidateAttestationOccurrenceResponse = src.ValidateAttestationOccurrenceResponse
   253  
   254  // The enum returned in the "result" field.
   255  //
   256  // Deprecated: Please use types in: cloud.google.com/go/binaryauthorization/apiv1/binaryauthorizationpb
   257  type ValidateAttestationOccurrenceResponse_Result = src.ValidateAttestationOccurrenceResponse_Result
   258  
   259  // ValidationHelperV1Client is the client API for ValidationHelperV1 service.
   260  // For semantics around ctx use and closing/ending streaming RPCs, please refer
   261  // to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
   262  //
   263  // Deprecated: Please use types in: cloud.google.com/go/binaryauthorization/apiv1/binaryauthorizationpb
   264  type ValidationHelperV1Client = src.ValidationHelperV1Client
   265  
   266  // ValidationHelperV1Server is the server API for ValidationHelperV1 service.
   267  //
   268  // Deprecated: Please use types in: cloud.google.com/go/binaryauthorization/apiv1/binaryauthorizationpb
   269  type ValidationHelperV1Server = src.ValidationHelperV1Server
   270  
   271  // Deprecated: Please use funcs in: cloud.google.com/go/binaryauthorization/apiv1/binaryauthorizationpb
   272  func NewBinauthzManagementServiceV1Client(cc grpc.ClientConnInterface) BinauthzManagementServiceV1Client {
   273  	return src.NewBinauthzManagementServiceV1Client(cc)
   274  }
   275  
   276  // Deprecated: Please use funcs in: cloud.google.com/go/binaryauthorization/apiv1/binaryauthorizationpb
   277  func NewSystemPolicyV1Client(cc grpc.ClientConnInterface) SystemPolicyV1Client {
   278  	return src.NewSystemPolicyV1Client(cc)
   279  }
   280  
   281  // Deprecated: Please use funcs in: cloud.google.com/go/binaryauthorization/apiv1/binaryauthorizationpb
   282  func NewValidationHelperV1Client(cc grpc.ClientConnInterface) ValidationHelperV1Client {
   283  	return src.NewValidationHelperV1Client(cc)
   284  }
   285  
   286  // Deprecated: Please use funcs in: cloud.google.com/go/binaryauthorization/apiv1/binaryauthorizationpb
   287  func RegisterBinauthzManagementServiceV1Server(s *grpc.Server, srv BinauthzManagementServiceV1Server) {
   288  	src.RegisterBinauthzManagementServiceV1Server(s, srv)
   289  }
   290  
   291  // Deprecated: Please use funcs in: cloud.google.com/go/binaryauthorization/apiv1/binaryauthorizationpb
   292  func RegisterSystemPolicyV1Server(s *grpc.Server, srv SystemPolicyV1Server) {
   293  	src.RegisterSystemPolicyV1Server(s, srv)
   294  }
   295  
   296  // Deprecated: Please use funcs in: cloud.google.com/go/binaryauthorization/apiv1/binaryauthorizationpb
   297  func RegisterValidationHelperV1Server(s *grpc.Server, srv ValidationHelperV1Server) {
   298  	src.RegisterValidationHelperV1Server(s, srv)
   299  }
   300  

View as plain text