Documentation
¶
Index ¶
- Constants
- Variables
- type ArchiveLabelsRequest
- func (x *ArchiveLabelsRequest) GetLabelRefs() []*LabelRef
- func (*ArchiveLabelsRequest) ProtoMessage()
- func (x *ArchiveLabelsRequest) ProtoReflect() protoreflect.Message
- func (x *ArchiveLabelsRequest) Reset()
- func (x *ArchiveLabelsRequest) SetLabelRefs(v []*LabelRef)
- func (x *ArchiveLabelsRequest) String() string
- type ArchiveLabelsRequest_builder
- type ArchiveLabelsResponse
- type ArchiveLabelsResponse_builder
- type Commit
- func (x *Commit) ClearCreateTime()
- func (x *Commit) ClearDigest()
- func (x *Commit) GetCreateTime() *timestamppb.Timestamp
- func (x *Commit) GetCreatedByUserId() string
- func (x *Commit) GetDigest() *Digest
- func (x *Commit) GetId() string
- func (x *Commit) GetOwnerId() string
- func (x *Commit) GetPolicyId() string
- func (x *Commit) HasCreateTime() bool
- func (x *Commit) HasDigest() bool
- func (*Commit) ProtoMessage()
- func (x *Commit) ProtoReflect() protoreflect.Message
- func (x *Commit) Reset()
- func (x *Commit) SetCreateTime(v *timestamppb.Timestamp)
- func (x *Commit) SetCreatedByUserId(v string)
- func (x *Commit) SetDigest(v *Digest)
- func (x *Commit) SetId(v string)
- func (x *Commit) SetOwnerId(v string)
- func (x *Commit) SetPolicyId(v string)
- func (x *Commit) String() string
- type Commit_builder
- type CreateOrUpdateLabelsRequest
- func (x *CreateOrUpdateLabelsRequest) GetValues() []*CreateOrUpdateLabelsRequest_Value
- func (*CreateOrUpdateLabelsRequest) ProtoMessage()
- func (x *CreateOrUpdateLabelsRequest) ProtoReflect() protoreflect.Message
- func (x *CreateOrUpdateLabelsRequest) Reset()
- func (x *CreateOrUpdateLabelsRequest) SetValues(v []*CreateOrUpdateLabelsRequest_Value)
- func (x *CreateOrUpdateLabelsRequest) String() string
- type CreateOrUpdateLabelsRequest_Value
- func (x *CreateOrUpdateLabelsRequest_Value) ClearLabelRef()
- func (x *CreateOrUpdateLabelsRequest_Value) GetCommitId() string
- func (x *CreateOrUpdateLabelsRequest_Value) GetLabelRef() *LabelRef
- func (x *CreateOrUpdateLabelsRequest_Value) HasLabelRef() bool
- func (*CreateOrUpdateLabelsRequest_Value) ProtoMessage()
- func (x *CreateOrUpdateLabelsRequest_Value) ProtoReflect() protoreflect.Message
- func (x *CreateOrUpdateLabelsRequest_Value) Reset()
- func (x *CreateOrUpdateLabelsRequest_Value) SetCommitId(v string)
- func (x *CreateOrUpdateLabelsRequest_Value) SetLabelRef(v *LabelRef)
- func (x *CreateOrUpdateLabelsRequest_Value) String() string
- type CreateOrUpdateLabelsRequest_Value_builder
- type CreateOrUpdateLabelsRequest_builder
- type CreateOrUpdateLabelsResponse
- func (x *CreateOrUpdateLabelsResponse) GetLabels() []*Label
- func (*CreateOrUpdateLabelsResponse) ProtoMessage()
- func (x *CreateOrUpdateLabelsResponse) ProtoReflect() protoreflect.Message
- func (x *CreateOrUpdateLabelsResponse) Reset()
- func (x *CreateOrUpdateLabelsResponse) SetLabels(v []*Label)
- func (x *CreateOrUpdateLabelsResponse) String() string
- type CreateOrUpdateLabelsResponse_builder
- type CreatePoliciesRequest
- func (x *CreatePoliciesRequest) GetValues() []*CreatePoliciesRequest_Value
- func (*CreatePoliciesRequest) ProtoMessage()
- func (x *CreatePoliciesRequest) ProtoReflect() protoreflect.Message
- func (x *CreatePoliciesRequest) Reset()
- func (x *CreatePoliciesRequest) SetValues(v []*CreatePoliciesRequest_Value)
- func (x *CreatePoliciesRequest) String() string
- type CreatePoliciesRequest_Value
- func (x *CreatePoliciesRequest_Value) ClearOwnerRef()
- func (x *CreatePoliciesRequest_Value) GetDescription() string
- func (x *CreatePoliciesRequest_Value) GetName() string
- func (x *CreatePoliciesRequest_Value) GetOwnerRef() *v1.OwnerRef
- func (x *CreatePoliciesRequest_Value) GetVisibility() PolicyVisibility
- func (x *CreatePoliciesRequest_Value) HasOwnerRef() bool
- func (*CreatePoliciesRequest_Value) ProtoMessage()
- func (x *CreatePoliciesRequest_Value) ProtoReflect() protoreflect.Message
- func (x *CreatePoliciesRequest_Value) Reset()
- func (x *CreatePoliciesRequest_Value) SetDescription(v string)
- func (x *CreatePoliciesRequest_Value) SetName(v string)
- func (x *CreatePoliciesRequest_Value) SetOwnerRef(v *v1.OwnerRef)
- func (x *CreatePoliciesRequest_Value) SetVisibility(v PolicyVisibility)
- func (x *CreatePoliciesRequest_Value) String() string
- type CreatePoliciesRequest_Value_builder
- type CreatePoliciesRequest_builder
- type CreatePoliciesResponse
- func (x *CreatePoliciesResponse) GetPolicies() []*Policy
- func (*CreatePoliciesResponse) ProtoMessage()
- func (x *CreatePoliciesResponse) ProtoReflect() protoreflect.Message
- func (x *CreatePoliciesResponse) Reset()
- func (x *CreatePoliciesResponse) SetPolicies(v []*Policy)
- func (x *CreatePoliciesResponse) String() string
- type CreatePoliciesResponse_builder
- type DeletePoliciesRequest
- func (x *DeletePoliciesRequest) GetPolicyRefs() []*PolicyRef
- func (*DeletePoliciesRequest) ProtoMessage()
- func (x *DeletePoliciesRequest) ProtoReflect() protoreflect.Message
- func (x *DeletePoliciesRequest) Reset()
- func (x *DeletePoliciesRequest) SetPolicyRefs(v []*PolicyRef)
- func (x *DeletePoliciesRequest) String() string
- type DeletePoliciesRequest_builder
- type DeletePoliciesResponse
- type DeletePoliciesResponse_builder
- type Digest
- type DigestType
- type Digest_builder
- type DownloadRequest
- func (x *DownloadRequest) GetValues() []*DownloadRequest_Value
- func (*DownloadRequest) ProtoMessage()
- func (x *DownloadRequest) ProtoReflect() protoreflect.Message
- func (x *DownloadRequest) Reset()
- func (x *DownloadRequest) SetValues(v []*DownloadRequest_Value)
- func (x *DownloadRequest) String() string
- type DownloadRequest_Value
- func (x *DownloadRequest_Value) ClearResourceRef()
- func (x *DownloadRequest_Value) GetResourceRef() *ResourceRef
- func (x *DownloadRequest_Value) HasResourceRef() bool
- func (*DownloadRequest_Value) ProtoMessage()
- func (x *DownloadRequest_Value) ProtoReflect() protoreflect.Message
- func (x *DownloadRequest_Value) Reset()
- func (x *DownloadRequest_Value) SetResourceRef(v *ResourceRef)
- func (x *DownloadRequest_Value) String() string
- type DownloadRequest_Value_builder
- type DownloadRequest_builder
- type DownloadResponse
- func (x *DownloadResponse) GetContents() []*DownloadResponse_Content
- func (*DownloadResponse) ProtoMessage()
- func (x *DownloadResponse) ProtoReflect() protoreflect.Message
- func (x *DownloadResponse) Reset()
- func (x *DownloadResponse) SetContents(v []*DownloadResponse_Content)
- func (x *DownloadResponse) String() string
- type DownloadResponse_Content
- func (x *DownloadResponse_Content) ClearCommit()
- func (x *DownloadResponse_Content) ClearConfig()
- func (x *DownloadResponse_Content) GetCommit() *Commit
- func (x *DownloadResponse_Content) GetConfig() *PolicyConfig
- func (x *DownloadResponse_Content) HasCommit() bool
- func (x *DownloadResponse_Content) HasConfig() bool
- func (*DownloadResponse_Content) ProtoMessage()
- func (x *DownloadResponse_Content) ProtoReflect() protoreflect.Message
- func (x *DownloadResponse_Content) Reset()
- func (x *DownloadResponse_Content) SetCommit(v *Commit)
- func (x *DownloadResponse_Content) SetConfig(v *PolicyConfig)
- func (x *DownloadResponse_Content) String() string
- type DownloadResponse_Content_builder
- type DownloadResponse_builder
- type GetCommitsRequest
- func (x *GetCommitsRequest) GetDigestType() DigestType
- func (x *GetCommitsRequest) GetResourceRefs() []*ResourceRef
- func (*GetCommitsRequest) ProtoMessage()
- func (x *GetCommitsRequest) ProtoReflect() protoreflect.Message
- func (x *GetCommitsRequest) Reset()
- func (x *GetCommitsRequest) SetDigestType(v DigestType)
- func (x *GetCommitsRequest) SetResourceRefs(v []*ResourceRef)
- func (x *GetCommitsRequest) String() string
- type GetCommitsRequest_builder
- type GetCommitsResponse
- type GetCommitsResponse_builder
- type GetLabelsRequest
- type GetLabelsRequest_builder
- type GetLabelsResponse
- type GetLabelsResponse_builder
- type GetPoliciesRequest
- func (x *GetPoliciesRequest) GetPolicyRefs() []*PolicyRef
- func (*GetPoliciesRequest) ProtoMessage()
- func (x *GetPoliciesRequest) ProtoReflect() protoreflect.Message
- func (x *GetPoliciesRequest) Reset()
- func (x *GetPoliciesRequest) SetPolicyRefs(v []*PolicyRef)
- func (x *GetPoliciesRequest) String() string
- type GetPoliciesRequest_builder
- type GetPoliciesResponse
- func (x *GetPoliciesResponse) GetPolicies() []*Policy
- func (*GetPoliciesResponse) ProtoMessage()
- func (x *GetPoliciesResponse) ProtoReflect() protoreflect.Message
- func (x *GetPoliciesResponse) Reset()
- func (x *GetPoliciesResponse) SetPolicies(v []*Policy)
- func (x *GetPoliciesResponse) String() string
- type GetPoliciesResponse_builder
- type GetResourcesRequest
- func (x *GetResourcesRequest) GetResourceRefs() []*ResourceRef
- func (*GetResourcesRequest) ProtoMessage()
- func (x *GetResourcesRequest) ProtoReflect() protoreflect.Message
- func (x *GetResourcesRequest) Reset()
- func (x *GetResourcesRequest) SetResourceRefs(v []*ResourceRef)
- func (x *GetResourcesRequest) String() string
- type GetResourcesRequest_builder
- type GetResourcesResponse
- func (x *GetResourcesResponse) GetResources() []*Resource
- func (*GetResourcesResponse) ProtoMessage()
- func (x *GetResourcesResponse) ProtoReflect() protoreflect.Message
- func (x *GetResourcesResponse) Reset()
- func (x *GetResourcesResponse) SetResources(v []*Resource)
- func (x *GetResourcesResponse) String() string
- type GetResourcesResponse_builder
- type Label
- func (x *Label) ClearArchiveTime()
- func (x *Label) ClearCreateTime()
- func (x *Label) ClearUpdateTime()
- func (x *Label) GetArchiveTime() *timestamppb.Timestamp
- func (x *Label) GetCommitId() string
- func (x *Label) GetCreateTime() *timestamppb.Timestamp
- func (x *Label) GetId() string
- func (x *Label) GetName() string
- func (x *Label) GetOwnerId() string
- func (x *Label) GetPolicyId() string
- func (x *Label) GetUpdateTime() *timestamppb.Timestamp
- func (x *Label) GetUpdatedByUserId() string
- func (x *Label) HasArchiveTime() bool
- func (x *Label) HasCreateTime() bool
- func (x *Label) HasUpdateTime() bool
- func (*Label) ProtoMessage()
- func (x *Label) ProtoReflect() protoreflect.Message
- func (x *Label) Reset()
- func (x *Label) SetArchiveTime(v *timestamppb.Timestamp)
- func (x *Label) SetCommitId(v string)
- func (x *Label) SetCreateTime(v *timestamppb.Timestamp)
- func (x *Label) SetId(v string)
- func (x *Label) SetName(v string)
- func (x *Label) SetOwnerId(v string)
- func (x *Label) SetPolicyId(v string)
- func (x *Label) SetUpdateTime(v *timestamppb.Timestamp)
- func (x *Label) SetUpdatedByUserId(v string)
- func (x *Label) String() string
- type LabelRef
- func (x *LabelRef) ClearId()
- func (x *LabelRef) ClearName()
- func (x *LabelRef) ClearValue()
- func (x *LabelRef) GetId() string
- func (x *LabelRef) GetName() *LabelRef_Name
- func (x *LabelRef) GetValue() isLabelRef_Value
- func (x *LabelRef) HasId() bool
- func (x *LabelRef) HasName() bool
- func (x *LabelRef) HasValue() bool
- func (*LabelRef) ProtoMessage()
- func (x *LabelRef) ProtoReflect() protoreflect.Message
- func (x *LabelRef) Reset()
- func (x *LabelRef) SetId(v string)
- func (x *LabelRef) SetName(v *LabelRef_Name)
- func (x *LabelRef) String() string
- func (x *LabelRef) WhichValue() case_LabelRef_Value
- type LabelRef_Id
- type LabelRef_Name
- func (x *LabelRef_Name) GetLabel() string
- func (x *LabelRef_Name) GetOwner() string
- func (x *LabelRef_Name) GetPolicy() string
- func (*LabelRef_Name) ProtoMessage()
- func (x *LabelRef_Name) ProtoReflect() protoreflect.Message
- func (x *LabelRef_Name) Reset()
- func (x *LabelRef_Name) SetLabel(v string)
- func (x *LabelRef_Name) SetOwner(v string)
- func (x *LabelRef_Name) SetPolicy(v string)
- func (x *LabelRef_Name) String() string
- type LabelRef_Name_
- type LabelRef_Name_builder
- type LabelRef_builder
- type Label_builder
- type ListCommitsRequest
- func (x *ListCommitsRequest) ClearResourceRef()
- func (x *ListCommitsRequest) GetDigestType() DigestType
- func (x *ListCommitsRequest) GetIdQuery() string
- func (x *ListCommitsRequest) GetOrder() ListCommitsRequest_Order
- func (x *ListCommitsRequest) GetPageSize() uint32
- func (x *ListCommitsRequest) GetPageToken() string
- func (x *ListCommitsRequest) GetResourceRef() *ResourceRef
- func (x *ListCommitsRequest) HasResourceRef() bool
- func (*ListCommitsRequest) ProtoMessage()
- func (x *ListCommitsRequest) ProtoReflect() protoreflect.Message
- func (x *ListCommitsRequest) Reset()
- func (x *ListCommitsRequest) SetDigestType(v DigestType)
- func (x *ListCommitsRequest) SetIdQuery(v string)
- func (x *ListCommitsRequest) SetOrder(v ListCommitsRequest_Order)
- func (x *ListCommitsRequest) SetPageSize(v uint32)
- func (x *ListCommitsRequest) SetPageToken(v string)
- func (x *ListCommitsRequest) SetResourceRef(v *ResourceRef)
- func (x *ListCommitsRequest) String() string
- type ListCommitsRequest_Order
- func (ListCommitsRequest_Order) Descriptor() protoreflect.EnumDescriptor
- func (x ListCommitsRequest_Order) Enum() *ListCommitsRequest_Order
- func (x ListCommitsRequest_Order) Number() protoreflect.EnumNumber
- func (x ListCommitsRequest_Order) String() string
- func (ListCommitsRequest_Order) Type() protoreflect.EnumType
- type ListCommitsRequest_builder
- type ListCommitsResponse
- func (x *ListCommitsResponse) GetCommits() []*Commit
- func (x *ListCommitsResponse) GetNextPageToken() string
- func (*ListCommitsResponse) ProtoMessage()
- func (x *ListCommitsResponse) ProtoReflect() protoreflect.Message
- func (x *ListCommitsResponse) Reset()
- func (x *ListCommitsResponse) SetCommits(v []*Commit)
- func (x *ListCommitsResponse) SetNextPageToken(v string)
- func (x *ListCommitsResponse) String() string
- type ListCommitsResponse_builder
- type ListLabelHistoryRequest
- func (x *ListLabelHistoryRequest) ClearLabelRef()
- func (x *ListLabelHistoryRequest) GetDigestType() DigestType
- func (x *ListLabelHistoryRequest) GetLabelRef() *LabelRef
- func (x *ListLabelHistoryRequest) GetOrder() ListLabelHistoryRequest_Order
- func (x *ListLabelHistoryRequest) GetPageSize() uint32
- func (x *ListLabelHistoryRequest) GetPageToken() string
- func (x *ListLabelHistoryRequest) GetStartCommitId() string
- func (x *ListLabelHistoryRequest) HasLabelRef() bool
- func (*ListLabelHistoryRequest) ProtoMessage()
- func (x *ListLabelHistoryRequest) ProtoReflect() protoreflect.Message
- func (x *ListLabelHistoryRequest) Reset()
- func (x *ListLabelHistoryRequest) SetDigestType(v DigestType)
- func (x *ListLabelHistoryRequest) SetLabelRef(v *LabelRef)
- func (x *ListLabelHistoryRequest) SetOrder(v ListLabelHistoryRequest_Order)
- func (x *ListLabelHistoryRequest) SetPageSize(v uint32)
- func (x *ListLabelHistoryRequest) SetPageToken(v string)
- func (x *ListLabelHistoryRequest) SetStartCommitId(v string)
- func (x *ListLabelHistoryRequest) String() string
- type ListLabelHistoryRequest_Order
- func (ListLabelHistoryRequest_Order) Descriptor() protoreflect.EnumDescriptor
- func (x ListLabelHistoryRequest_Order) Enum() *ListLabelHistoryRequest_Order
- func (x ListLabelHistoryRequest_Order) Number() protoreflect.EnumNumber
- func (x ListLabelHistoryRequest_Order) String() string
- func (ListLabelHistoryRequest_Order) Type() protoreflect.EnumType
- type ListLabelHistoryRequest_builder
- type ListLabelHistoryResponse
- func (x *ListLabelHistoryResponse) GetNextPageToken() string
- func (x *ListLabelHistoryResponse) GetValues() []*ListLabelHistoryResponse_Value
- func (*ListLabelHistoryResponse) ProtoMessage()
- func (x *ListLabelHistoryResponse) ProtoReflect() protoreflect.Message
- func (x *ListLabelHistoryResponse) Reset()
- func (x *ListLabelHistoryResponse) SetNextPageToken(v string)
- func (x *ListLabelHistoryResponse) SetValues(v []*ListLabelHistoryResponse_Value)
- func (x *ListLabelHistoryResponse) String() string
- type ListLabelHistoryResponse_Value
- func (x *ListLabelHistoryResponse_Value) ClearCommit()
- func (x *ListLabelHistoryResponse_Value) GetCommit() *Commit
- func (x *ListLabelHistoryResponse_Value) HasCommit() bool
- func (*ListLabelHistoryResponse_Value) ProtoMessage()
- func (x *ListLabelHistoryResponse_Value) ProtoReflect() protoreflect.Message
- func (x *ListLabelHistoryResponse_Value) Reset()
- func (x *ListLabelHistoryResponse_Value) SetCommit(v *Commit)
- func (x *ListLabelHistoryResponse_Value) String() string
- type ListLabelHistoryResponse_Value_builder
- type ListLabelHistoryResponse_builder
- type ListLabelsRequest
- func (x *ListLabelsRequest) ClearResourceRef()
- func (x *ListLabelsRequest) GetArchiveFilter() ListLabelsRequest_ArchiveFilter
- func (x *ListLabelsRequest) GetNameQuery() string
- func (x *ListLabelsRequest) GetOrder() ListLabelsRequest_Order
- func (x *ListLabelsRequest) GetPageSize() uint32
- func (x *ListLabelsRequest) GetPageToken() string
- func (x *ListLabelsRequest) GetResourceRef() *ResourceRef
- func (x *ListLabelsRequest) HasResourceRef() bool
- func (*ListLabelsRequest) ProtoMessage()
- func (x *ListLabelsRequest) ProtoReflect() protoreflect.Message
- func (x *ListLabelsRequest) Reset()
- func (x *ListLabelsRequest) SetArchiveFilter(v ListLabelsRequest_ArchiveFilter)
- func (x *ListLabelsRequest) SetNameQuery(v string)
- func (x *ListLabelsRequest) SetOrder(v ListLabelsRequest_Order)
- func (x *ListLabelsRequest) SetPageSize(v uint32)
- func (x *ListLabelsRequest) SetPageToken(v string)
- func (x *ListLabelsRequest) SetResourceRef(v *ResourceRef)
- func (x *ListLabelsRequest) String() string
- type ListLabelsRequest_ArchiveFilter
- func (ListLabelsRequest_ArchiveFilter) Descriptor() protoreflect.EnumDescriptor
- func (x ListLabelsRequest_ArchiveFilter) Enum() *ListLabelsRequest_ArchiveFilter
- func (x ListLabelsRequest_ArchiveFilter) Number() protoreflect.EnumNumber
- func (x ListLabelsRequest_ArchiveFilter) String() string
- func (ListLabelsRequest_ArchiveFilter) Type() protoreflect.EnumType
- type ListLabelsRequest_Order
- func (ListLabelsRequest_Order) Descriptor() protoreflect.EnumDescriptor
- func (x ListLabelsRequest_Order) Enum() *ListLabelsRequest_Order
- func (x ListLabelsRequest_Order) Number() protoreflect.EnumNumber
- func (x ListLabelsRequest_Order) String() string
- func (ListLabelsRequest_Order) Type() protoreflect.EnumType
- type ListLabelsRequest_builder
- type ListLabelsResponse
- func (x *ListLabelsResponse) GetLabels() []*Label
- func (x *ListLabelsResponse) GetNextPageToken() string
- func (*ListLabelsResponse) ProtoMessage()
- func (x *ListLabelsResponse) ProtoReflect() protoreflect.Message
- func (x *ListLabelsResponse) Reset()
- func (x *ListLabelsResponse) SetLabels(v []*Label)
- func (x *ListLabelsResponse) SetNextPageToken(v string)
- func (x *ListLabelsResponse) String() string
- type ListLabelsResponse_builder
- type ListPoliciesRequest
- func (x *ListPoliciesRequest) GetOrder() ListPoliciesRequest_Order
- func (x *ListPoliciesRequest) GetOwnerRefs() []*v1.OwnerRef
- func (x *ListPoliciesRequest) GetPageSize() uint32
- func (x *ListPoliciesRequest) GetPageToken() string
- func (*ListPoliciesRequest) ProtoMessage()
- func (x *ListPoliciesRequest) ProtoReflect() protoreflect.Message
- func (x *ListPoliciesRequest) Reset()
- func (x *ListPoliciesRequest) SetOrder(v ListPoliciesRequest_Order)
- func (x *ListPoliciesRequest) SetOwnerRefs(v []*v1.OwnerRef)
- func (x *ListPoliciesRequest) SetPageSize(v uint32)
- func (x *ListPoliciesRequest) SetPageToken(v string)
- func (x *ListPoliciesRequest) String() string
- type ListPoliciesRequest_Order
- func (ListPoliciesRequest_Order) Descriptor() protoreflect.EnumDescriptor
- func (x ListPoliciesRequest_Order) Enum() *ListPoliciesRequest_Order
- func (x ListPoliciesRequest_Order) Number() protoreflect.EnumNumber
- func (x ListPoliciesRequest_Order) String() string
- func (ListPoliciesRequest_Order) Type() protoreflect.EnumType
- type ListPoliciesRequest_builder
- type ListPoliciesResponse
- func (x *ListPoliciesResponse) GetNextPageToken() string
- func (x *ListPoliciesResponse) GetPolicies() []*Policy
- func (*ListPoliciesResponse) ProtoMessage()
- func (x *ListPoliciesResponse) ProtoReflect() protoreflect.Message
- func (x *ListPoliciesResponse) Reset()
- func (x *ListPoliciesResponse) SetNextPageToken(v string)
- func (x *ListPoliciesResponse) SetPolicies(v []*Policy)
- func (x *ListPoliciesResponse) String() string
- type ListPoliciesResponse_builder
- type Policy
- func (x *Policy) ClearCreateTime()
- func (x *Policy) ClearUpdateTime()
- func (x *Policy) GetCreateTime() *timestamppb.Timestamp
- func (x *Policy) GetDescription() string
- func (x *Policy) GetId() string
- func (x *Policy) GetName() string
- func (x *Policy) GetOwnerId() string
- func (x *Policy) GetState() PolicyState
- func (x *Policy) GetUpdateTime() *timestamppb.Timestamp
- func (x *Policy) GetVisibility() PolicyVisibility
- func (x *Policy) HasCreateTime() bool
- func (x *Policy) HasUpdateTime() bool
- func (*Policy) ProtoMessage()
- func (x *Policy) ProtoReflect() protoreflect.Message
- func (x *Policy) Reset()
- func (x *Policy) SetCreateTime(v *timestamppb.Timestamp)
- func (x *Policy) SetDescription(v string)
- func (x *Policy) SetId(v string)
- func (x *Policy) SetName(v string)
- func (x *Policy) SetOwnerId(v string)
- func (x *Policy) SetState(v PolicyState)
- func (x *Policy) SetUpdateTime(v *timestamppb.Timestamp)
- func (x *Policy) SetVisibility(v PolicyVisibility)
- func (x *Policy) String() string
- type PolicyConfig
- func (x *PolicyConfig) ClearBreaking()
- func (x *PolicyConfig) ClearLint()
- func (x *PolicyConfig) GetBreaking() *PolicyConfig_BreakingConfig
- func (x *PolicyConfig) GetLint() *PolicyConfig_LintConfig
- func (x *PolicyConfig) GetPlugins() []*PolicyConfig_CheckPluginConfig
- func (x *PolicyConfig) HasBreaking() bool
- func (x *PolicyConfig) HasLint() bool
- func (*PolicyConfig) ProtoMessage()
- func (x *PolicyConfig) ProtoReflect() protoreflect.Message
- func (x *PolicyConfig) Reset()
- func (x *PolicyConfig) SetBreaking(v *PolicyConfig_BreakingConfig)
- func (x *PolicyConfig) SetLint(v *PolicyConfig_LintConfig)
- func (x *PolicyConfig) SetPlugins(v []*PolicyConfig_CheckPluginConfig)
- func (x *PolicyConfig) String() string
- type PolicyConfig_BreakingConfig
- func (x *PolicyConfig_BreakingConfig) GetDisableBuiltin() bool
- func (x *PolicyConfig_BreakingConfig) GetExcept() []string
- func (x *PolicyConfig_BreakingConfig) GetIgnoreUnstablePackages() bool
- func (x *PolicyConfig_BreakingConfig) GetUse() []string
- func (*PolicyConfig_BreakingConfig) ProtoMessage()
- func (x *PolicyConfig_BreakingConfig) ProtoReflect() protoreflect.Message
- func (x *PolicyConfig_BreakingConfig) Reset()
- func (x *PolicyConfig_BreakingConfig) SetDisableBuiltin(v bool)
- func (x *PolicyConfig_BreakingConfig) SetExcept(v []string)
- func (x *PolicyConfig_BreakingConfig) SetIgnoreUnstablePackages(v bool)
- func (x *PolicyConfig_BreakingConfig) SetUse(v []string)
- func (x *PolicyConfig_BreakingConfig) String() string
- type PolicyConfig_BreakingConfig_builder
- type PolicyConfig_CheckPluginConfig
- func (x *PolicyConfig_CheckPluginConfig) ClearName()
- func (x *PolicyConfig_CheckPluginConfig) GetArgs() []string
- func (x *PolicyConfig_CheckPluginConfig) GetName() *PolicyConfig_CheckPluginConfig_Name
- func (x *PolicyConfig_CheckPluginConfig) GetOptions() []*v1.Option
- func (x *PolicyConfig_CheckPluginConfig) HasName() bool
- func (*PolicyConfig_CheckPluginConfig) ProtoMessage()
- func (x *PolicyConfig_CheckPluginConfig) ProtoReflect() protoreflect.Message
- func (x *PolicyConfig_CheckPluginConfig) Reset()
- func (x *PolicyConfig_CheckPluginConfig) SetArgs(v []string)
- func (x *PolicyConfig_CheckPluginConfig) SetName(v *PolicyConfig_CheckPluginConfig_Name)
- func (x *PolicyConfig_CheckPluginConfig) SetOptions(v []*v1.Option)
- func (x *PolicyConfig_CheckPluginConfig) String() string
- type PolicyConfig_CheckPluginConfig_Name
- func (x *PolicyConfig_CheckPluginConfig_Name) GetOwner() string
- func (x *PolicyConfig_CheckPluginConfig_Name) GetPlugin() string
- func (x *PolicyConfig_CheckPluginConfig_Name) GetRef() string
- func (*PolicyConfig_CheckPluginConfig_Name) ProtoMessage()
- func (x *PolicyConfig_CheckPluginConfig_Name) ProtoReflect() protoreflect.Message
- func (x *PolicyConfig_CheckPluginConfig_Name) Reset()
- func (x *PolicyConfig_CheckPluginConfig_Name) SetOwner(v string)
- func (x *PolicyConfig_CheckPluginConfig_Name) SetPlugin(v string)
- func (x *PolicyConfig_CheckPluginConfig_Name) SetRef(v string)
- func (x *PolicyConfig_CheckPluginConfig_Name) String() string
- type PolicyConfig_CheckPluginConfig_Name_builder
- type PolicyConfig_CheckPluginConfig_builder
- type PolicyConfig_LintConfig
- func (x *PolicyConfig_LintConfig) GetDisableBuiltin() bool
- func (x *PolicyConfig_LintConfig) GetEnumZeroValueSuffix() string
- func (x *PolicyConfig_LintConfig) GetExcept() []string
- func (x *PolicyConfig_LintConfig) GetRpcAllowGoogleProtobufEmptyRequests() bool
- func (x *PolicyConfig_LintConfig) GetRpcAllowGoogleProtobufEmptyResponses() bool
- func (x *PolicyConfig_LintConfig) GetRpcAllowSameRequestResponse() bool
- func (x *PolicyConfig_LintConfig) GetServiceSuffix() string
- func (x *PolicyConfig_LintConfig) GetUse() []string
- func (*PolicyConfig_LintConfig) ProtoMessage()
- func (x *PolicyConfig_LintConfig) ProtoReflect() protoreflect.Message
- func (x *PolicyConfig_LintConfig) Reset()
- func (x *PolicyConfig_LintConfig) SetDisableBuiltin(v bool)
- func (x *PolicyConfig_LintConfig) SetEnumZeroValueSuffix(v string)
- func (x *PolicyConfig_LintConfig) SetExcept(v []string)
- func (x *PolicyConfig_LintConfig) SetRpcAllowGoogleProtobufEmptyRequests(v bool)
- func (x *PolicyConfig_LintConfig) SetRpcAllowGoogleProtobufEmptyResponses(v bool)
- func (x *PolicyConfig_LintConfig) SetRpcAllowSameRequestResponse(v bool)
- func (x *PolicyConfig_LintConfig) SetServiceSuffix(v string)
- func (x *PolicyConfig_LintConfig) SetUse(v []string)
- func (x *PolicyConfig_LintConfig) String() string
- type PolicyConfig_LintConfig_builder
- type PolicyConfig_builder
- type PolicyRef
- func (x *PolicyRef) ClearId()
- func (x *PolicyRef) ClearName()
- func (x *PolicyRef) ClearValue()
- func (x *PolicyRef) GetId() string
- func (x *PolicyRef) GetName() *PolicyRef_Name
- func (x *PolicyRef) GetValue() isPolicyRef_Value
- func (x *PolicyRef) HasId() bool
- func (x *PolicyRef) HasName() bool
- func (x *PolicyRef) HasValue() bool
- func (*PolicyRef) ProtoMessage()
- func (x *PolicyRef) ProtoReflect() protoreflect.Message
- func (x *PolicyRef) Reset()
- func (x *PolicyRef) SetId(v string)
- func (x *PolicyRef) SetName(v *PolicyRef_Name)
- func (x *PolicyRef) String() string
- func (x *PolicyRef) WhichValue() case_PolicyRef_Value
- type PolicyRef_Id
- type PolicyRef_Name
- func (x *PolicyRef_Name) GetOwner() string
- func (x *PolicyRef_Name) GetPolicy() string
- func (*PolicyRef_Name) ProtoMessage()
- func (x *PolicyRef_Name) ProtoReflect() protoreflect.Message
- func (x *PolicyRef_Name) Reset()
- func (x *PolicyRef_Name) SetOwner(v string)
- func (x *PolicyRef_Name) SetPolicy(v string)
- func (x *PolicyRef_Name) String() string
- type PolicyRef_Name_
- type PolicyRef_Name_builder
- type PolicyRef_builder
- type PolicyState
- type PolicyVisibility
- type Policy_builder
- type Resource
- func (x *Resource) ClearCommit()
- func (x *Resource) ClearLabel()
- func (x *Resource) ClearPolicy()
- func (x *Resource) ClearValue()
- func (x *Resource) GetCommit() *Commit
- func (x *Resource) GetLabel() *Label
- func (x *Resource) GetPolicy() *Policy
- func (x *Resource) GetValue() isResource_Value
- func (x *Resource) HasCommit() bool
- func (x *Resource) HasLabel() bool
- func (x *Resource) HasPolicy() bool
- func (x *Resource) HasValue() bool
- func (*Resource) ProtoMessage()
- func (x *Resource) ProtoReflect() protoreflect.Message
- func (x *Resource) Reset()
- func (x *Resource) SetCommit(v *Commit)
- func (x *Resource) SetLabel(v *Label)
- func (x *Resource) SetPolicy(v *Policy)
- func (x *Resource) String() string
- func (x *Resource) WhichValue() case_Resource_Value
- type ResourceRef
- func (x *ResourceRef) ClearId()
- func (x *ResourceRef) ClearName()
- func (x *ResourceRef) ClearValue()
- func (x *ResourceRef) GetId() string
- func (x *ResourceRef) GetName() *ResourceRef_Name
- func (x *ResourceRef) GetValue() isResourceRef_Value
- func (x *ResourceRef) HasId() bool
- func (x *ResourceRef) HasName() bool
- func (x *ResourceRef) HasValue() bool
- func (*ResourceRef) ProtoMessage()
- func (x *ResourceRef) ProtoReflect() protoreflect.Message
- func (x *ResourceRef) Reset()
- func (x *ResourceRef) SetId(v string)
- func (x *ResourceRef) SetName(v *ResourceRef_Name)
- func (x *ResourceRef) String() string
- func (x *ResourceRef) WhichValue() case_ResourceRef_Value
- type ResourceRef_Id
- type ResourceRef_Name
- func (x *ResourceRef_Name) ClearChild()
- func (x *ResourceRef_Name) ClearLabelName()
- func (x *ResourceRef_Name) ClearRef()
- func (x *ResourceRef_Name) GetChild() isResourceRef_Name_Child
- func (x *ResourceRef_Name) GetLabelName() string
- func (x *ResourceRef_Name) GetOwner() string
- func (x *ResourceRef_Name) GetPolicy() string
- func (x *ResourceRef_Name) GetRef() string
- func (x *ResourceRef_Name) HasChild() bool
- func (x *ResourceRef_Name) HasLabelName() bool
- func (x *ResourceRef_Name) HasRef() bool
- func (*ResourceRef_Name) ProtoMessage()
- func (x *ResourceRef_Name) ProtoReflect() protoreflect.Message
- func (x *ResourceRef_Name) Reset()
- func (x *ResourceRef_Name) SetLabelName(v string)
- func (x *ResourceRef_Name) SetOwner(v string)
- func (x *ResourceRef_Name) SetPolicy(v string)
- func (x *ResourceRef_Name) SetRef(v string)
- func (x *ResourceRef_Name) String() string
- func (x *ResourceRef_Name) WhichChild() case_ResourceRef_Name_Child
- type ResourceRef_Name_
- type ResourceRef_Name_LabelName
- type ResourceRef_Name_Ref
- type ResourceRef_Name_builder
- type ResourceRef_builder
- type Resource_Commit
- type Resource_Label
- type Resource_Policy
- type Resource_builder
- type ScopedLabelRef
- func (x *ScopedLabelRef) ClearId()
- func (x *ScopedLabelRef) ClearName()
- func (x *ScopedLabelRef) ClearValue()
- func (x *ScopedLabelRef) GetId() string
- func (x *ScopedLabelRef) GetName() string
- func (x *ScopedLabelRef) GetValue() isScopedLabelRef_Value
- func (x *ScopedLabelRef) HasId() bool
- func (x *ScopedLabelRef) HasName() bool
- func (x *ScopedLabelRef) HasValue() bool
- func (*ScopedLabelRef) ProtoMessage()
- func (x *ScopedLabelRef) ProtoReflect() protoreflect.Message
- func (x *ScopedLabelRef) Reset()
- func (x *ScopedLabelRef) SetId(v string)
- func (x *ScopedLabelRef) SetName(v string)
- func (x *ScopedLabelRef) String() string
- func (x *ScopedLabelRef) WhichValue() case_ScopedLabelRef_Value
- type ScopedLabelRef_Id
- type ScopedLabelRef_Name
- type ScopedLabelRef_builder
- type UnarchiveLabelsRequest
- func (x *UnarchiveLabelsRequest) GetLabelRefs() []*LabelRef
- func (*UnarchiveLabelsRequest) ProtoMessage()
- func (x *UnarchiveLabelsRequest) ProtoReflect() protoreflect.Message
- func (x *UnarchiveLabelsRequest) Reset()
- func (x *UnarchiveLabelsRequest) SetLabelRefs(v []*LabelRef)
- func (x *UnarchiveLabelsRequest) String() string
- type UnarchiveLabelsRequest_builder
- type UnarchiveLabelsResponse
- type UnarchiveLabelsResponse_builder
- type UpdatePoliciesRequest
- func (x *UpdatePoliciesRequest) GetValues() []*UpdatePoliciesRequest_Value
- func (*UpdatePoliciesRequest) ProtoMessage()
- func (x *UpdatePoliciesRequest) ProtoReflect() protoreflect.Message
- func (x *UpdatePoliciesRequest) Reset()
- func (x *UpdatePoliciesRequest) SetValues(v []*UpdatePoliciesRequest_Value)
- func (x *UpdatePoliciesRequest) String() string
- type UpdatePoliciesRequest_Value
- func (x *UpdatePoliciesRequest_Value) ClearDescription()
- func (x *UpdatePoliciesRequest_Value) ClearPolicyRef()
- func (x *UpdatePoliciesRequest_Value) ClearState()
- func (x *UpdatePoliciesRequest_Value) ClearVisibility()
- func (x *UpdatePoliciesRequest_Value) GetDescription() string
- func (x *UpdatePoliciesRequest_Value) GetPolicyRef() *PolicyRef
- func (x *UpdatePoliciesRequest_Value) GetState() PolicyState
- func (x *UpdatePoliciesRequest_Value) GetVisibility() PolicyVisibility
- func (x *UpdatePoliciesRequest_Value) HasDescription() bool
- func (x *UpdatePoliciesRequest_Value) HasPolicyRef() bool
- func (x *UpdatePoliciesRequest_Value) HasState() bool
- func (x *UpdatePoliciesRequest_Value) HasVisibility() bool
- func (*UpdatePoliciesRequest_Value) ProtoMessage()
- func (x *UpdatePoliciesRequest_Value) ProtoReflect() protoreflect.Message
- func (x *UpdatePoliciesRequest_Value) Reset()
- func (x *UpdatePoliciesRequest_Value) SetDescription(v string)
- func (x *UpdatePoliciesRequest_Value) SetPolicyRef(v *PolicyRef)
- func (x *UpdatePoliciesRequest_Value) SetState(v PolicyState)
- func (x *UpdatePoliciesRequest_Value) SetVisibility(v PolicyVisibility)
- func (x *UpdatePoliciesRequest_Value) String() string
- type UpdatePoliciesRequest_Value_builder
- type UpdatePoliciesRequest_builder
- type UpdatePoliciesResponse
- func (x *UpdatePoliciesResponse) GetPolicies() []*Policy
- func (*UpdatePoliciesResponse) ProtoMessage()
- func (x *UpdatePoliciesResponse) ProtoReflect() protoreflect.Message
- func (x *UpdatePoliciesResponse) Reset()
- func (x *UpdatePoliciesResponse) SetPolicies(v []*Policy)
- func (x *UpdatePoliciesResponse) String() string
- type UpdatePoliciesResponse_builder
- type UploadRequest
- type UploadRequest_Content
- func (x *UploadRequest_Content) ClearConfig()
- func (x *UploadRequest_Content) ClearPolicyRef()
- func (x *UploadRequest_Content) GetConfig() *PolicyConfig
- func (x *UploadRequest_Content) GetPolicyRef() *PolicyRef
- func (x *UploadRequest_Content) GetScopedLabelRefs() []*ScopedLabelRef
- func (x *UploadRequest_Content) HasConfig() bool
- func (x *UploadRequest_Content) HasPolicyRef() bool
- func (*UploadRequest_Content) ProtoMessage()
- func (x *UploadRequest_Content) ProtoReflect() protoreflect.Message
- func (x *UploadRequest_Content) Reset()
- func (x *UploadRequest_Content) SetConfig(v *PolicyConfig)
- func (x *UploadRequest_Content) SetPolicyRef(v *PolicyRef)
- func (x *UploadRequest_Content) SetScopedLabelRefs(v []*ScopedLabelRef)
- func (x *UploadRequest_Content) String() string
- type UploadRequest_Content_builder
- type UploadRequest_builder
- type UploadResponse
- type UploadResponse_builder
Constants ¶
const LabelRef_Id_case case_LabelRef_Value = 1
const LabelRef_Name_case case_LabelRef_Value = 2
const LabelRef_Value_not_set_case case_LabelRef_Value = 0
const PolicyRef_Id_case case_PolicyRef_Value = 1
const PolicyRef_Name_case case_PolicyRef_Value = 2
const PolicyRef_Value_not_set_case case_PolicyRef_Value = 0
const ResourceRef_Id_case case_ResourceRef_Value = 1
const ResourceRef_Name_Child_not_set_case case_ResourceRef_Name_Child = 0
const ResourceRef_Name_LabelName_case case_ResourceRef_Name_Child = 3
const ResourceRef_Name_Ref_case case_ResourceRef_Name_Child = 4
const ResourceRef_Name_case case_ResourceRef_Value = 2
const ResourceRef_Value_not_set_case case_ResourceRef_Value = 0
const Resource_Commit_case case_Resource_Value = 3
const Resource_Label_case case_Resource_Value = 2
const Resource_Policy_case case_Resource_Value = 1
const Resource_Value_not_set_case case_Resource_Value = 0
const ScopedLabelRef_Id_case case_ScopedLabelRef_Value = 1
const ScopedLabelRef_Name_case case_ScopedLabelRef_Value = 2
const ScopedLabelRef_Value_not_set_case case_ScopedLabelRef_Value = 0
Variables ¶
var ( ListCommitsRequest_Order_name = map[int32]string{ 0: "ORDER_UNSPECIFIED", 1: "ORDER_CREATE_TIME_DESC", 2: "ORDER_CREATE_TIME_ASC", } ListCommitsRequest_Order_value = map[string]int32{ "ORDER_UNSPECIFIED": 0, "ORDER_CREATE_TIME_DESC": 1, "ORDER_CREATE_TIME_ASC": 2, } )
Enum value maps for ListCommitsRequest_Order.
var ( DigestType_name = map[int32]string{ 0: "DIGEST_TYPE_UNSPECIFIED", 1: "DIGEST_TYPE_O1", } DigestType_value = map[string]int32{ "DIGEST_TYPE_UNSPECIFIED": 0, "DIGEST_TYPE_O1": 1, } )
Enum value maps for DigestType.
var ( ListLabelsRequest_Order_name = map[int32]string{ 0: "ORDER_UNSPECIFIED", 1: "ORDER_CREATE_TIME_DESC", 2: "ORDER_CREATE_TIME_ASC", 3: "ORDER_UPDATE_TIME_DESC", 4: "ORDER_UPDATE_TIME_ASC", } ListLabelsRequest_Order_value = map[string]int32{ "ORDER_UNSPECIFIED": 0, "ORDER_CREATE_TIME_DESC": 1, "ORDER_CREATE_TIME_ASC": 2, "ORDER_UPDATE_TIME_DESC": 3, "ORDER_UPDATE_TIME_ASC": 4, } )
Enum value maps for ListLabelsRequest_Order.
var ( ListLabelsRequest_ArchiveFilter_name = map[int32]string{ 0: "ARCHIVE_FILTER_UNSPECIFIED", 1: "ARCHIVE_FILTER_UNARCHIVED_ONLY", 2: "ARCHIVE_FILTER_ARCHIVED_ONLY", 3: "ARCHIVE_FILTER_ALL", } ListLabelsRequest_ArchiveFilter_value = map[string]int32{ "ARCHIVE_FILTER_UNSPECIFIED": 0, "ARCHIVE_FILTER_UNARCHIVED_ONLY": 1, "ARCHIVE_FILTER_ARCHIVED_ONLY": 2, "ARCHIVE_FILTER_ALL": 3, } )
Enum value maps for ListLabelsRequest_ArchiveFilter.
var ( ListLabelHistoryRequest_Order_name = map[int32]string{ 0: "ORDER_UNSPECIFIED", 1: "ORDER_DESC", 2: "ORDER_ASC", } ListLabelHistoryRequest_Order_value = map[string]int32{ "ORDER_UNSPECIFIED": 0, "ORDER_DESC": 1, "ORDER_ASC": 2, } )
Enum value maps for ListLabelHistoryRequest_Order.
var ( PolicyVisibility_name = map[int32]string{ 0: "POLICY_VISIBILITY_UNSPECIFIED", 1: "POLICY_VISIBILITY_PUBLIC", 2: "POLICY_VISIBILITY_PRIVATE", } PolicyVisibility_value = map[string]int32{ "POLICY_VISIBILITY_UNSPECIFIED": 0, "POLICY_VISIBILITY_PUBLIC": 1, "POLICY_VISIBILITY_PRIVATE": 2, } )
Enum value maps for PolicyVisibility.
var ( PolicyState_name = map[int32]string{ 0: "POLICY_STATE_UNSPECIFIED", 1: "POLICY_STATE_ACTIVE", 2: "POLICY_STATE_DEPRECATED", } PolicyState_value = map[string]int32{ "POLICY_STATE_UNSPECIFIED": 0, "POLICY_STATE_ACTIVE": 1, "POLICY_STATE_DEPRECATED": 2, } )
Enum value maps for PolicyState.
var ( ListPoliciesRequest_Order_name = map[int32]string{ 0: "ORDER_UNSPECIFIED", 1: "ORDER_CREATE_TIME_DESC", 2: "ORDER_CREATE_TIME_ASC", } ListPoliciesRequest_Order_value = map[string]int32{ "ORDER_UNSPECIFIED": 0, "ORDER_CREATE_TIME_DESC": 1, "ORDER_CREATE_TIME_ASC": 2, } )
Enum value maps for ListPoliciesRequest_Order.
var File_buf_registry_policy_v1beta1_commit_proto protoreflect.FileDescriptor
var File_buf_registry_policy_v1beta1_commit_service_proto protoreflect.FileDescriptor
var File_buf_registry_policy_v1beta1_configuration_proto protoreflect.FileDescriptor
var File_buf_registry_policy_v1beta1_digest_proto protoreflect.FileDescriptor
var File_buf_registry_policy_v1beta1_download_service_proto protoreflect.FileDescriptor
var File_buf_registry_policy_v1beta1_label_proto protoreflect.FileDescriptor
var File_buf_registry_policy_v1beta1_label_service_proto protoreflect.FileDescriptor
var File_buf_registry_policy_v1beta1_policy_proto protoreflect.FileDescriptor
var File_buf_registry_policy_v1beta1_policy_service_proto protoreflect.FileDescriptor
var File_buf_registry_policy_v1beta1_resource_proto protoreflect.FileDescriptor
var File_buf_registry_policy_v1beta1_resource_service_proto protoreflect.FileDescriptor
var File_buf_registry_policy_v1beta1_upload_service_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type ArchiveLabelsRequest ¶
type ArchiveLabelsRequest struct {
// The Labels to archive.
LabelRefs []*LabelRef `protobuf:"bytes,1,rep,name=label_refs,json=labelRefs,proto3" json:"label_refs,omitempty"`
// contains filtered or unexported fields
}
func (*ArchiveLabelsRequest) GetLabelRefs ¶
func (x *ArchiveLabelsRequest) GetLabelRefs() []*LabelRef
func (*ArchiveLabelsRequest) ProtoMessage ¶
func (*ArchiveLabelsRequest) ProtoMessage()
func (*ArchiveLabelsRequest) ProtoReflect ¶
func (x *ArchiveLabelsRequest) ProtoReflect() protoreflect.Message
func (*ArchiveLabelsRequest) Reset ¶
func (x *ArchiveLabelsRequest) Reset()
func (*ArchiveLabelsRequest) SetLabelRefs ¶
func (x *ArchiveLabelsRequest) SetLabelRefs(v []*LabelRef)
func (*ArchiveLabelsRequest) String ¶
func (x *ArchiveLabelsRequest) String() string
type ArchiveLabelsRequest_builder ¶
type ArchiveLabelsRequest_builder struct {
// The Labels to archive.
LabelRefs []*LabelRef
// contains filtered or unexported fields
}
func (ArchiveLabelsRequest_builder) Build ¶
func (b0 ArchiveLabelsRequest_builder) Build() *ArchiveLabelsRequest
type ArchiveLabelsResponse ¶
type ArchiveLabelsResponse struct {
// contains filtered or unexported fields
}
func (*ArchiveLabelsResponse) ProtoMessage ¶
func (*ArchiveLabelsResponse) ProtoMessage()
func (*ArchiveLabelsResponse) ProtoReflect ¶
func (x *ArchiveLabelsResponse) ProtoReflect() protoreflect.Message
func (*ArchiveLabelsResponse) Reset ¶
func (x *ArchiveLabelsResponse) Reset()
func (*ArchiveLabelsResponse) String ¶
func (x *ArchiveLabelsResponse) String() string
type ArchiveLabelsResponse_builder ¶
type ArchiveLabelsResponse_builder struct {
// contains filtered or unexported fields
}
func (ArchiveLabelsResponse_builder) Build ¶
func (b0 ArchiveLabelsResponse_builder) Build() *ArchiveLabelsResponse
type Commit ¶
type Commit struct {
// The id of the Commit.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// The time the Commit was pushed to the BSR.
//
// Commits are immutable, so there is no corresponding update_time.
CreateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// The id of the Organization that owns the Policy that the Commit is associated with.
OwnerId string `protobuf:"bytes,3,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"`
// The id of the Policy that the Commit is associated with.
PolicyId string `protobuf:"bytes,4,opt,name=policy_id,json=policyId,proto3" json:"policy_id,omitempty"`
// The Digest of the Commit's contents.
Digest *Digest `protobuf:"bytes,6,opt,name=digest,proto3" json:"digest,omitempty"`
// The id of the User that created this Commit on the BSR.
//
// May be empty if the User is no longer available.
CreatedByUserId string `protobuf:"bytes,5,opt,name=created_by_user_id,json=createdByUserId,proto3" json:"created_by_user_id,omitempty"`
// contains filtered or unexported fields
}
A Commit on a specific Policy.
Commits are immutable.
Many Commits may be associated with one Digest.
Note that the Digest returned on a Commit depends on the requested DigestType in the RPC that returned the Commit.
func (*Commit) GetCreateTime ¶
func (x *Commit) GetCreateTime() *timestamppb.Timestamp
func (*Commit) ProtoReflect ¶
func (x *Commit) ProtoReflect() protoreflect.Message
func (*Commit) SetCreateTime ¶
func (x *Commit) SetCreateTime(v *timestamppb.Timestamp)
type Commit_builder ¶
type Commit_builder struct {
// The id of the Commit.
Id string
// The time the Commit was pushed to the BSR.
//
// Commits are immutable, so there is no corresponding update_time.
CreateTime *timestamppb.Timestamp
// The id of the Organization that owns the Policy that the Commit is associated with.
OwnerId string
// The id of the Policy that the Commit is associated with.
PolicyId string
// The Digest of the Commit's contents.
Digest *Digest
// The id of the User that created this Commit on the BSR.
//
// May be empty if the User is no longer available.
CreatedByUserId string
// contains filtered or unexported fields
}
func (Commit_builder) Build ¶
func (b0 Commit_builder) Build() *Commit
type CreateOrUpdateLabelsRequest ¶
type CreateOrUpdateLabelsRequest struct {
// The Labels to create.
Values []*CreateOrUpdateLabelsRequest_Value `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"`
// contains filtered or unexported fields
}
func (*CreateOrUpdateLabelsRequest) GetValues ¶
func (x *CreateOrUpdateLabelsRequest) GetValues() []*CreateOrUpdateLabelsRequest_Value
func (*CreateOrUpdateLabelsRequest) ProtoMessage ¶
func (*CreateOrUpdateLabelsRequest) ProtoMessage()
func (*CreateOrUpdateLabelsRequest) ProtoReflect ¶
func (x *CreateOrUpdateLabelsRequest) ProtoReflect() protoreflect.Message
func (*CreateOrUpdateLabelsRequest) Reset ¶
func (x *CreateOrUpdateLabelsRequest) Reset()
func (*CreateOrUpdateLabelsRequest) SetValues ¶
func (x *CreateOrUpdateLabelsRequest) SetValues(v []*CreateOrUpdateLabelsRequest_Value)
func (*CreateOrUpdateLabelsRequest) String ¶
func (x *CreateOrUpdateLabelsRequest) String() string
type CreateOrUpdateLabelsRequest_Value ¶
type CreateOrUpdateLabelsRequest_Value struct {
// The Labels to create or update.
LabelRef *LabelRef `protobuf:"bytes,1,opt,name=label_ref,json=labelRef,proto3" json:"label_ref,omitempty"`
// The id of the Commit to associate with the Label.
//
// If the Label already existed, the Label will now point to this Commit, as long as this Commit
// is newer than the Commit that the Label is currently pointing to, otherwise an error is
// returned. If the Label was archived, it will be unarchived.
CommitId string `protobuf:"bytes,2,opt,name=commit_id,json=commitId,proto3" json:"commit_id,omitempty"`
// contains filtered or unexported fields
}
An individual request to create or update a Label.
func (*CreateOrUpdateLabelsRequest_Value) ClearLabelRef ¶
func (x *CreateOrUpdateLabelsRequest_Value) ClearLabelRef()
func (*CreateOrUpdateLabelsRequest_Value) GetCommitId ¶
func (x *CreateOrUpdateLabelsRequest_Value) GetCommitId() string
func (*CreateOrUpdateLabelsRequest_Value) GetLabelRef ¶
func (x *CreateOrUpdateLabelsRequest_Value) GetLabelRef() *LabelRef
func (*CreateOrUpdateLabelsRequest_Value) HasLabelRef ¶
func (x *CreateOrUpdateLabelsRequest_Value) HasLabelRef() bool
func (*CreateOrUpdateLabelsRequest_Value) ProtoMessage ¶
func (*CreateOrUpdateLabelsRequest_Value) ProtoMessage()
func (*CreateOrUpdateLabelsRequest_Value) ProtoReflect ¶
func (x *CreateOrUpdateLabelsRequest_Value) ProtoReflect() protoreflect.Message
func (*CreateOrUpdateLabelsRequest_Value) Reset ¶
func (x *CreateOrUpdateLabelsRequest_Value) Reset()
func (*CreateOrUpdateLabelsRequest_Value) SetCommitId ¶
func (x *CreateOrUpdateLabelsRequest_Value) SetCommitId(v string)
func (*CreateOrUpdateLabelsRequest_Value) SetLabelRef ¶
func (x *CreateOrUpdateLabelsRequest_Value) SetLabelRef(v *LabelRef)
func (*CreateOrUpdateLabelsRequest_Value) String ¶
func (x *CreateOrUpdateLabelsRequest_Value) String() string
type CreateOrUpdateLabelsRequest_Value_builder ¶
type CreateOrUpdateLabelsRequest_Value_builder struct {
// The Labels to create or update.
LabelRef *LabelRef
// The id of the Commit to associate with the Label.
//
// If the Label already existed, the Label will now point to this Commit, as long as this Commit
// is newer than the Commit that the Label is currently pointing to, otherwise an error is
// returned. If the Label was archived, it will be unarchived.
CommitId string
// contains filtered or unexported fields
}
func (CreateOrUpdateLabelsRequest_Value_builder) Build ¶
func (b0 CreateOrUpdateLabelsRequest_Value_builder) Build() *CreateOrUpdateLabelsRequest_Value
type CreateOrUpdateLabelsRequest_builder ¶
type CreateOrUpdateLabelsRequest_builder struct {
// The Labels to create.
Values []*CreateOrUpdateLabelsRequest_Value
// contains filtered or unexported fields
}
func (CreateOrUpdateLabelsRequest_builder) Build ¶
func (b0 CreateOrUpdateLabelsRequest_builder) Build() *CreateOrUpdateLabelsRequest
type CreateOrUpdateLabelsResponse ¶
type CreateOrUpdateLabelsResponse struct {
// The created or updated Labels in the same order as given on the request.
Labels []*Label `protobuf:"bytes,1,rep,name=labels,proto3" json:"labels,omitempty"`
// contains filtered or unexported fields
}
func (*CreateOrUpdateLabelsResponse) GetLabels ¶
func (x *CreateOrUpdateLabelsResponse) GetLabels() []*Label
func (*CreateOrUpdateLabelsResponse) ProtoMessage ¶
func (*CreateOrUpdateLabelsResponse) ProtoMessage()
func (*CreateOrUpdateLabelsResponse) ProtoReflect ¶
func (x *CreateOrUpdateLabelsResponse) ProtoReflect() protoreflect.Message
func (*CreateOrUpdateLabelsResponse) Reset ¶
func (x *CreateOrUpdateLabelsResponse) Reset()
func (*CreateOrUpdateLabelsResponse) SetLabels ¶
func (x *CreateOrUpdateLabelsResponse) SetLabels(v []*Label)
func (*CreateOrUpdateLabelsResponse) String ¶
func (x *CreateOrUpdateLabelsResponse) String() string
type CreateOrUpdateLabelsResponse_builder ¶
type CreateOrUpdateLabelsResponse_builder struct {
// The created or updated Labels in the same order as given on the request.
Labels []*Label
// contains filtered or unexported fields
}
func (CreateOrUpdateLabelsResponse_builder) Build ¶
func (b0 CreateOrUpdateLabelsResponse_builder) Build() *CreateOrUpdateLabelsResponse
type CreatePoliciesRequest ¶
type CreatePoliciesRequest struct {
// The Policies to create.
Values []*CreatePoliciesRequest_Value `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"`
// contains filtered or unexported fields
}
func (*CreatePoliciesRequest) GetValues ¶
func (x *CreatePoliciesRequest) GetValues() []*CreatePoliciesRequest_Value
func (*CreatePoliciesRequest) ProtoMessage ¶
func (*CreatePoliciesRequest) ProtoMessage()
func (*CreatePoliciesRequest) ProtoReflect ¶
func (x *CreatePoliciesRequest) ProtoReflect() protoreflect.Message
func (*CreatePoliciesRequest) Reset ¶
func (x *CreatePoliciesRequest) Reset()
func (*CreatePoliciesRequest) SetValues ¶
func (x *CreatePoliciesRequest) SetValues(v []*CreatePoliciesRequest_Value)
func (*CreatePoliciesRequest) String ¶
func (x *CreatePoliciesRequest) String() string
type CreatePoliciesRequest_Value ¶
type CreatePoliciesRequest_Value struct {
// The User or Organization to create the Policy under.
OwnerRef *v1.OwnerRef `protobuf:"bytes,1,opt,name=owner_ref,json=ownerRef,proto3" json:"owner_ref,omitempty"`
// The name of the Policy.
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
// The Policy's visibility.
//
// If not specified, it uses the value from the instance or organization visibility control,
// which defaults to POLICY_VISIBILITY_PRIVATE.
Visibility PolicyVisibility `protobuf:"varint,3,opt,name=visibility,proto3,enum=buf.registry.policy.v1beta1.PolicyVisibility" json:"visibility,omitempty"`
// The configurable description of the Policy.
Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
// contains filtered or unexported fields
}
An individual request to create a Policy.
func (*CreatePoliciesRequest_Value) ClearOwnerRef ¶
func (x *CreatePoliciesRequest_Value) ClearOwnerRef()
func (*CreatePoliciesRequest_Value) GetDescription ¶
func (x *CreatePoliciesRequest_Value) GetDescription() string
func (*CreatePoliciesRequest_Value) GetName ¶
func (x *CreatePoliciesRequest_Value) GetName() string
func (*CreatePoliciesRequest_Value) GetOwnerRef ¶
func (x *CreatePoliciesRequest_Value) GetOwnerRef() *v1.OwnerRef
func (*CreatePoliciesRequest_Value) GetVisibility ¶
func (x *CreatePoliciesRequest_Value) GetVisibility() PolicyVisibility
func (*CreatePoliciesRequest_Value) HasOwnerRef ¶
func (x *CreatePoliciesRequest_Value) HasOwnerRef() bool
func (*CreatePoliciesRequest_Value) ProtoMessage ¶
func (*CreatePoliciesRequest_Value) ProtoMessage()
func (*CreatePoliciesRequest_Value) ProtoReflect ¶
func (x *CreatePoliciesRequest_Value) ProtoReflect() protoreflect.Message
func (*CreatePoliciesRequest_Value) Reset ¶
func (x *CreatePoliciesRequest_Value) Reset()
func (*CreatePoliciesRequest_Value) SetDescription ¶
func (x *CreatePoliciesRequest_Value) SetDescription(v string)
func (*CreatePoliciesRequest_Value) SetName ¶
func (x *CreatePoliciesRequest_Value) SetName(v string)
func (*CreatePoliciesRequest_Value) SetOwnerRef ¶
func (x *CreatePoliciesRequest_Value) SetOwnerRef(v *v1.OwnerRef)
func (*CreatePoliciesRequest_Value) SetVisibility ¶
func (x *CreatePoliciesRequest_Value) SetVisibility(v PolicyVisibility)
func (*CreatePoliciesRequest_Value) String ¶
func (x *CreatePoliciesRequest_Value) String() string
type CreatePoliciesRequest_Value_builder ¶
type CreatePoliciesRequest_Value_builder struct {
// The User or Organization to create the Policy under.
OwnerRef *v1.OwnerRef
// The name of the Policy.
Name string
// The Policy's visibility.
//
// If not specified, it uses the value from the instance or organization visibility control,
// which defaults to POLICY_VISIBILITY_PRIVATE.
Visibility PolicyVisibility
// The configurable description of the Policy.
Description string
// contains filtered or unexported fields
}
func (CreatePoliciesRequest_Value_builder) Build ¶
func (b0 CreatePoliciesRequest_Value_builder) Build() *CreatePoliciesRequest_Value
type CreatePoliciesRequest_builder ¶
type CreatePoliciesRequest_builder struct {
// The Policies to create.
Values []*CreatePoliciesRequest_Value
// contains filtered or unexported fields
}
func (CreatePoliciesRequest_builder) Build ¶
func (b0 CreatePoliciesRequest_builder) Build() *CreatePoliciesRequest
type CreatePoliciesResponse ¶
type CreatePoliciesResponse struct {
// The created Policies in the same order as given on the request.
Policies []*Policy `protobuf:"bytes,1,rep,name=policies,proto3" json:"policies,omitempty"`
// contains filtered or unexported fields
}
func (*CreatePoliciesResponse) GetPolicies ¶
func (x *CreatePoliciesResponse) GetPolicies() []*Policy
func (*CreatePoliciesResponse) ProtoMessage ¶
func (*CreatePoliciesResponse) ProtoMessage()
func (*CreatePoliciesResponse) ProtoReflect ¶
func (x *CreatePoliciesResponse) ProtoReflect() protoreflect.Message
func (*CreatePoliciesResponse) Reset ¶
func (x *CreatePoliciesResponse) Reset()
func (*CreatePoliciesResponse) SetPolicies ¶
func (x *CreatePoliciesResponse) SetPolicies(v []*Policy)
func (*CreatePoliciesResponse) String ¶
func (x *CreatePoliciesResponse) String() string
type CreatePoliciesResponse_builder ¶
type CreatePoliciesResponse_builder struct {
// The created Policies in the same order as given on the request.
Policies []*Policy
// contains filtered or unexported fields
}
func (CreatePoliciesResponse_builder) Build ¶
func (b0 CreatePoliciesResponse_builder) Build() *CreatePoliciesResponse
type DeletePoliciesRequest ¶
type DeletePoliciesRequest struct {
// The Policies to delete.
PolicyRefs []*PolicyRef `protobuf:"bytes,1,rep,name=policy_refs,json=policyRefs,proto3" json:"policy_refs,omitempty"`
// contains filtered or unexported fields
}
func (*DeletePoliciesRequest) GetPolicyRefs ¶
func (x *DeletePoliciesRequest) GetPolicyRefs() []*PolicyRef
func (*DeletePoliciesRequest) ProtoMessage ¶
func (*DeletePoliciesRequest) ProtoMessage()
func (*DeletePoliciesRequest) ProtoReflect ¶
func (x *DeletePoliciesRequest) ProtoReflect() protoreflect.Message
func (*DeletePoliciesRequest) Reset ¶
func (x *DeletePoliciesRequest) Reset()
func (*DeletePoliciesRequest) SetPolicyRefs ¶
func (x *DeletePoliciesRequest) SetPolicyRefs(v []*PolicyRef)
func (*DeletePoliciesRequest) String ¶
func (x *DeletePoliciesRequest) String() string
type DeletePoliciesRequest_builder ¶
type DeletePoliciesRequest_builder struct {
// The Policies to delete.
PolicyRefs []*PolicyRef
// contains filtered or unexported fields
}
func (DeletePoliciesRequest_builder) Build ¶
func (b0 DeletePoliciesRequest_builder) Build() *DeletePoliciesRequest
type DeletePoliciesResponse ¶
type DeletePoliciesResponse struct {
// contains filtered or unexported fields
}
func (*DeletePoliciesResponse) ProtoMessage ¶
func (*DeletePoliciesResponse) ProtoMessage()
func (*DeletePoliciesResponse) ProtoReflect ¶
func (x *DeletePoliciesResponse) ProtoReflect() protoreflect.Message
func (*DeletePoliciesResponse) Reset ¶
func (x *DeletePoliciesResponse) Reset()
func (*DeletePoliciesResponse) String ¶
func (x *DeletePoliciesResponse) String() string
type DeletePoliciesResponse_builder ¶
type DeletePoliciesResponse_builder struct {
// contains filtered or unexported fields
}
func (DeletePoliciesResponse_builder) Build ¶
func (b0 DeletePoliciesResponse_builder) Build() *DeletePoliciesResponse
type Digest ¶
type Digest struct {
// The type of the Digest.
Type DigestType `protobuf:"varint,1,opt,name=type,proto3,enum=buf.registry.policy.v1beta1.DigestType" json:"type,omitempty"`
// The value of the Digest.
Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
// contains filtered or unexported fields
}
A digest of a Commit's content.
A digest represents all content for a single Commit.
func (*Digest) GetType ¶
func (x *Digest) GetType() DigestType
func (*Digest) ProtoReflect ¶
func (x *Digest) ProtoReflect() protoreflect.Message
func (*Digest) SetType ¶
func (x *Digest) SetType(v DigestType)
type DigestType ¶
type DigestType int32
The type of Digest.
const ( DigestType_DIGEST_TYPE_UNSPECIFIED DigestType = 0 // The O1 digest function. DigestType_DIGEST_TYPE_O1 DigestType = 1 )
func (DigestType) Descriptor ¶
func (DigestType) Descriptor() protoreflect.EnumDescriptor
func (DigestType) Enum ¶
func (x DigestType) Enum() *DigestType
func (DigestType) Number ¶
func (x DigestType) Number() protoreflect.EnumNumber
func (DigestType) String ¶
func (x DigestType) String() string
func (DigestType) Type ¶
func (DigestType) Type() protoreflect.EnumType
type Digest_builder ¶
type Digest_builder struct {
// The type of the Digest.
Type DigestType
// The value of the Digest.
Value []byte
// contains filtered or unexported fields
}
func (Digest_builder) Build ¶
func (b0 Digest_builder) Build() *Digest
type DownloadRequest ¶
type DownloadRequest struct {
// The references to get contents for.
Values []*DownloadRequest_Value `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"`
// contains filtered or unexported fields
}
func (*DownloadRequest) GetValues ¶
func (x *DownloadRequest) GetValues() []*DownloadRequest_Value
func (*DownloadRequest) ProtoMessage ¶
func (*DownloadRequest) ProtoMessage()
func (*DownloadRequest) ProtoReflect ¶
func (x *DownloadRequest) ProtoReflect() protoreflect.Message
func (*DownloadRequest) Reset ¶
func (x *DownloadRequest) Reset()
func (*DownloadRequest) SetValues ¶
func (x *DownloadRequest) SetValues(v []*DownloadRequest_Value)
func (*DownloadRequest) String ¶
func (x *DownloadRequest) String() string
type DownloadRequest_Value ¶
type DownloadRequest_Value struct {
// The reference to get content for.
//
// See the documentation on Reference for reference resolution details.
//
// Once the resource is resolved, the following content is returned:
// - If a Policy is referenced, the content of the latest commit of the default label is
// returned.
// - If a Label is referenced, the content of the Commit of this Label is returned.
// - If a Commit is referenced, the content for this Commit is returned.
ResourceRef *ResourceRef `protobuf:"bytes,1,opt,name=resource_ref,json=resourceRef,proto3" json:"resource_ref,omitempty"`
// contains filtered or unexported fields
}
A request for content for a single version of a Policy.
func (*DownloadRequest_Value) ClearResourceRef ¶
func (x *DownloadRequest_Value) ClearResourceRef()
func (*DownloadRequest_Value) GetResourceRef ¶
func (x *DownloadRequest_Value) GetResourceRef() *ResourceRef
func (*DownloadRequest_Value) HasResourceRef ¶
func (x *DownloadRequest_Value) HasResourceRef() bool
func (*DownloadRequest_Value) ProtoMessage ¶
func (*DownloadRequest_Value) ProtoMessage()
func (*DownloadRequest_Value) ProtoReflect ¶
func (x *DownloadRequest_Value) ProtoReflect() protoreflect.Message
func (*DownloadRequest_Value) Reset ¶
func (x *DownloadRequest_Value) Reset()
func (*DownloadRequest_Value) SetResourceRef ¶
func (x *DownloadRequest_Value) SetResourceRef(v *ResourceRef)
func (*DownloadRequest_Value) String ¶
func (x *DownloadRequest_Value) String() string
type DownloadRequest_Value_builder ¶
type DownloadRequest_Value_builder struct {
// The reference to get content for.
//
// See the documentation on Reference for reference resolution details.
//
// Once the resource is resolved, the following content is returned:
// - If a Policy is referenced, the content of the latest commit of the default label is
// returned.
// - If a Label is referenced, the content of the Commit of this Label is returned.
// - If a Commit is referenced, the content for this Commit is returned.
ResourceRef *ResourceRef
// contains filtered or unexported fields
}
func (DownloadRequest_Value_builder) Build ¶
func (b0 DownloadRequest_Value_builder) Build() *DownloadRequest_Value
type DownloadRequest_builder ¶
type DownloadRequest_builder struct {
// The references to get contents for.
Values []*DownloadRequest_Value
// contains filtered or unexported fields
}
func (DownloadRequest_builder) Build ¶
func (b0 DownloadRequest_builder) Build() *DownloadRequest
type DownloadResponse ¶
type DownloadResponse struct {
// The contents for each reference in the same order as given on the request.
Contents []*DownloadResponse_Content `protobuf:"bytes,1,rep,name=contents,proto3" json:"contents,omitempty"`
// contains filtered or unexported fields
}
func (*DownloadResponse) GetContents ¶
func (x *DownloadResponse) GetContents() []*DownloadResponse_Content
func (*DownloadResponse) ProtoMessage ¶
func (*DownloadResponse) ProtoMessage()
func (*DownloadResponse) ProtoReflect ¶
func (x *DownloadResponse) ProtoReflect() protoreflect.Message
func (*DownloadResponse) Reset ¶
func (x *DownloadResponse) Reset()
func (*DownloadResponse) SetContents ¶
func (x *DownloadResponse) SetContents(v []*DownloadResponse_Content)
func (*DownloadResponse) String ¶
func (x *DownloadResponse) String() string
type DownloadResponse_Content ¶
type DownloadResponse_Content struct {
// The Commit associated with the Content.
Commit *Commit `protobuf:"bytes,1,opt,name=commit,proto3" json:"commit,omitempty"`
// The Policy config.
Config *PolicyConfig `protobuf:"bytes,2,opt,name=config,proto3" json:"config,omitempty"`
// contains filtered or unexported fields
}
Content for a single version of a Policy.
func (*DownloadResponse_Content) ClearCommit ¶
func (x *DownloadResponse_Content) ClearCommit()
func (*DownloadResponse_Content) ClearConfig ¶
func (x *DownloadResponse_Content) ClearConfig()
func (*DownloadResponse_Content) GetCommit ¶
func (x *DownloadResponse_Content) GetCommit() *Commit
func (*DownloadResponse_Content) GetConfig ¶
func (x *DownloadResponse_Content) GetConfig() *PolicyConfig
func (*DownloadResponse_Content) HasCommit ¶
func (x *DownloadResponse_Content) HasCommit() bool
func (*DownloadResponse_Content) HasConfig ¶
func (x *DownloadResponse_Content) HasConfig() bool
func (*DownloadResponse_Content) ProtoMessage ¶
func (*DownloadResponse_Content) ProtoMessage()
func (*DownloadResponse_Content) ProtoReflect ¶
func (x *DownloadResponse_Content) ProtoReflect() protoreflect.Message
func (*DownloadResponse_Content) Reset ¶
func (x *DownloadResponse_Content) Reset()
func (*DownloadResponse_Content) SetCommit ¶
func (x *DownloadResponse_Content) SetCommit(v *Commit)
func (*DownloadResponse_Content) SetConfig ¶
func (x *DownloadResponse_Content) SetConfig(v *PolicyConfig)
func (*DownloadResponse_Content) String ¶
func (x *DownloadResponse_Content) String() string
type DownloadResponse_Content_builder ¶
type DownloadResponse_Content_builder struct {
// The Commit associated with the Content.
Commit *Commit
// The Policy config.
Config *PolicyConfig
// contains filtered or unexported fields
}
func (DownloadResponse_Content_builder) Build ¶
func (b0 DownloadResponse_Content_builder) Build() *DownloadResponse_Content
type DownloadResponse_builder ¶
type DownloadResponse_builder struct {
// The contents for each reference in the same order as given on the request.
Contents []*DownloadResponse_Content
// contains filtered or unexported fields
}
func (DownloadResponse_builder) Build ¶
func (b0 DownloadResponse_builder) Build() *DownloadResponse
type GetCommitsRequest ¶
type GetCommitsRequest struct {
// References to request a Commit for.
//
// See the documentation on ResourceRef for resource resolution details.
//
// Resolution is as follows:
// - If a Policy is referenced, the Commit of the default Label is returned.
// - If a Label is referenced, the Commit of this Label is returned.
// - If a Commit is referenced, this Commit is returned.
ResourceRefs []*ResourceRef `protobuf:"bytes,1,rep,name=resource_refs,json=resourceRefs,proto3" json:"resource_refs,omitempty"`
// The DigestType to use for Digests returned on Commits.
//
// If this DigestType is not available, an error is returned.
// Note that certain DigestTypes may be deprecated over time.
//
// If not set, the latest DigestType is used, currently O1.
DigestType DigestType `` /* 136-byte string literal not displayed */
// contains filtered or unexported fields
}
func (*GetCommitsRequest) GetDigestType ¶
func (x *GetCommitsRequest) GetDigestType() DigestType
func (*GetCommitsRequest) GetResourceRefs ¶
func (x *GetCommitsRequest) GetResourceRefs() []*ResourceRef
func (*GetCommitsRequest) ProtoMessage ¶
func (*GetCommitsRequest) ProtoMessage()
func (*GetCommitsRequest) ProtoReflect ¶
func (x *GetCommitsRequest) ProtoReflect() protoreflect.Message
func (*GetCommitsRequest) Reset ¶
func (x *GetCommitsRequest) Reset()
func (*GetCommitsRequest) SetDigestType ¶
func (x *GetCommitsRequest) SetDigestType(v DigestType)
func (*GetCommitsRequest) SetResourceRefs ¶
func (x *GetCommitsRequest) SetResourceRefs(v []*ResourceRef)
func (*GetCommitsRequest) String ¶
func (x *GetCommitsRequest) String() string
type GetCommitsRequest_builder ¶
type GetCommitsRequest_builder struct {
// References to request a Commit for.
//
// See the documentation on ResourceRef for resource resolution details.
//
// Resolution is as follows:
// - If a Policy is referenced, the Commit of the default Label is returned.
// - If a Label is referenced, the Commit of this Label is returned.
// - If a Commit is referenced, this Commit is returned.
ResourceRefs []*ResourceRef
// The DigestType to use for Digests returned on Commits.
//
// If this DigestType is not available, an error is returned.
// Note that certain DigestTypes may be deprecated over time.
//
// If not set, the latest DigestType is used, currently O1.
DigestType DigestType
// contains filtered or unexported fields
}
func (GetCommitsRequest_builder) Build ¶
func (b0 GetCommitsRequest_builder) Build() *GetCommitsRequest
type GetCommitsResponse ¶
type GetCommitsResponse struct {
// The found Commits in the same order as requested.
Commits []*Commit `protobuf:"bytes,1,rep,name=commits,proto3" json:"commits,omitempty"`
// contains filtered or unexported fields
}
func (*GetCommitsResponse) GetCommits ¶
func (x *GetCommitsResponse) GetCommits() []*Commit
func (*GetCommitsResponse) ProtoMessage ¶
func (*GetCommitsResponse) ProtoMessage()
func (*GetCommitsResponse) ProtoReflect ¶
func (x *GetCommitsResponse) ProtoReflect() protoreflect.Message
func (*GetCommitsResponse) Reset ¶
func (x *GetCommitsResponse) Reset()
func (*GetCommitsResponse) SetCommits ¶
func (x *GetCommitsResponse) SetCommits(v []*Commit)
func (*GetCommitsResponse) String ¶
func (x *GetCommitsResponse) String() string
type GetCommitsResponse_builder ¶
type GetCommitsResponse_builder struct {
// The found Commits in the same order as requested.
Commits []*Commit
// contains filtered or unexported fields
}
func (GetCommitsResponse_builder) Build ¶
func (b0 GetCommitsResponse_builder) Build() *GetCommitsResponse
type GetLabelsRequest ¶
type GetLabelsRequest struct {
// The Labels to request.
//
// This may reference archived Labels.
LabelRefs []*LabelRef `protobuf:"bytes,1,rep,name=label_refs,json=labelRefs,proto3" json:"label_refs,omitempty"`
// contains filtered or unexported fields
}
func (*GetLabelsRequest) GetLabelRefs ¶
func (x *GetLabelsRequest) GetLabelRefs() []*LabelRef
func (*GetLabelsRequest) ProtoMessage ¶
func (*GetLabelsRequest) ProtoMessage()
func (*GetLabelsRequest) ProtoReflect ¶
func (x *GetLabelsRequest) ProtoReflect() protoreflect.Message
func (*GetLabelsRequest) Reset ¶
func (x *GetLabelsRequest) Reset()
func (*GetLabelsRequest) SetLabelRefs ¶
func (x *GetLabelsRequest) SetLabelRefs(v []*LabelRef)
func (*GetLabelsRequest) String ¶
func (x *GetLabelsRequest) String() string
type GetLabelsRequest_builder ¶
type GetLabelsRequest_builder struct {
// The Labels to request.
//
// This may reference archived Labels.
LabelRefs []*LabelRef
// contains filtered or unexported fields
}
func (GetLabelsRequest_builder) Build ¶
func (b0 GetLabelsRequest_builder) Build() *GetLabelsRequest
type GetLabelsResponse ¶
type GetLabelsResponse struct {
// The retrieved Labels in the same order as requested.
Labels []*Label `protobuf:"bytes,1,rep,name=labels,proto3" json:"labels,omitempty"`
// contains filtered or unexported fields
}
func (*GetLabelsResponse) GetLabels ¶
func (x *GetLabelsResponse) GetLabels() []*Label
func (*GetLabelsResponse) ProtoMessage ¶
func (*GetLabelsResponse) ProtoMessage()
func (*GetLabelsResponse) ProtoReflect ¶
func (x *GetLabelsResponse) ProtoReflect() protoreflect.Message
func (*GetLabelsResponse) Reset ¶
func (x *GetLabelsResponse) Reset()
func (*GetLabelsResponse) SetLabels ¶
func (x *GetLabelsResponse) SetLabels(v []*Label)
func (*GetLabelsResponse) String ¶
func (x *GetLabelsResponse) String() string
type GetLabelsResponse_builder ¶
type GetLabelsResponse_builder struct {
// The retrieved Labels in the same order as requested.
Labels []*Label
// contains filtered or unexported fields
}
func (GetLabelsResponse_builder) Build ¶
func (b0 GetLabelsResponse_builder) Build() *GetLabelsResponse
type GetPoliciesRequest ¶
type GetPoliciesRequest struct {
// The Policies to request.
PolicyRefs []*PolicyRef `protobuf:"bytes,1,rep,name=policy_refs,json=policyRefs,proto3" json:"policy_refs,omitempty"`
// contains filtered or unexported fields
}
func (*GetPoliciesRequest) GetPolicyRefs ¶
func (x *GetPoliciesRequest) GetPolicyRefs() []*PolicyRef
func (*GetPoliciesRequest) ProtoMessage ¶
func (*GetPoliciesRequest) ProtoMessage()
func (*GetPoliciesRequest) ProtoReflect ¶
func (x *GetPoliciesRequest) ProtoReflect() protoreflect.Message
func (*GetPoliciesRequest) Reset ¶
func (x *GetPoliciesRequest) Reset()
func (*GetPoliciesRequest) SetPolicyRefs ¶
func (x *GetPoliciesRequest) SetPolicyRefs(v []*PolicyRef)
func (*GetPoliciesRequest) String ¶
func (x *GetPoliciesRequest) String() string
type GetPoliciesRequest_builder ¶
type GetPoliciesRequest_builder struct {
// The Policies to request.
PolicyRefs []*PolicyRef
// contains filtered or unexported fields
}
func (GetPoliciesRequest_builder) Build ¶
func (b0 GetPoliciesRequest_builder) Build() *GetPoliciesRequest
type GetPoliciesResponse ¶
type GetPoliciesResponse struct {
// The retrieved Policies in the same order as requested.
Policies []*Policy `protobuf:"bytes,1,rep,name=policies,proto3" json:"policies,omitempty"`
// contains filtered or unexported fields
}
func (*GetPoliciesResponse) GetPolicies ¶
func (x *GetPoliciesResponse) GetPolicies() []*Policy
func (*GetPoliciesResponse) ProtoMessage ¶
func (*GetPoliciesResponse) ProtoMessage()
func (*GetPoliciesResponse) ProtoReflect ¶
func (x *GetPoliciesResponse) ProtoReflect() protoreflect.Message
func (*GetPoliciesResponse) Reset ¶
func (x *GetPoliciesResponse) Reset()
func (*GetPoliciesResponse) SetPolicies ¶
func (x *GetPoliciesResponse) SetPolicies(v []*Policy)
func (*GetPoliciesResponse) String ¶
func (x *GetPoliciesResponse) String() string
type GetPoliciesResponse_builder ¶
type GetPoliciesResponse_builder struct {
// The retrieved Policies in the same order as requested.
Policies []*Policy
// contains filtered or unexported fields
}
func (GetPoliciesResponse_builder) Build ¶
func (b0 GetPoliciesResponse_builder) Build() *GetPoliciesResponse
type GetResourcesRequest ¶
type GetResourcesRequest struct {
// References to request a Resource for.
//
// See the documentation on ResourceRef for resource resolution details.
ResourceRefs []*ResourceRef `protobuf:"bytes,1,rep,name=resource_refs,json=resourceRefs,proto3" json:"resource_refs,omitempty"`
// contains filtered or unexported fields
}
func (*GetResourcesRequest) GetResourceRefs ¶
func (x *GetResourcesRequest) GetResourceRefs() []*ResourceRef
func (*GetResourcesRequest) ProtoMessage ¶
func (*GetResourcesRequest) ProtoMessage()
func (*GetResourcesRequest) ProtoReflect ¶
func (x *GetResourcesRequest) ProtoReflect() protoreflect.Message
func (*GetResourcesRequest) Reset ¶
func (x *GetResourcesRequest) Reset()
func (*GetResourcesRequest) SetResourceRefs ¶
func (x *GetResourcesRequest) SetResourceRefs(v []*ResourceRef)
func (*GetResourcesRequest) String ¶
func (x *GetResourcesRequest) String() string
type GetResourcesRequest_builder ¶
type GetResourcesRequest_builder struct {
// References to request a Resource for.
//
// See the documentation on ResourceRef for resource resolution details.
ResourceRefs []*ResourceRef
// contains filtered or unexported fields
}
func (GetResourcesRequest_builder) Build ¶
func (b0 GetResourcesRequest_builder) Build() *GetResourcesRequest
type GetResourcesResponse ¶
type GetResourcesResponse struct {
// The found Resources in the same order as requested.
Resources []*Resource `protobuf:"bytes,1,rep,name=resources,proto3" json:"resources,omitempty"`
// contains filtered or unexported fields
}
func (*GetResourcesResponse) GetResources ¶
func (x *GetResourcesResponse) GetResources() []*Resource
func (*GetResourcesResponse) ProtoMessage ¶
func (*GetResourcesResponse) ProtoMessage()
func (*GetResourcesResponse) ProtoReflect ¶
func (x *GetResourcesResponse) ProtoReflect() protoreflect.Message
func (*GetResourcesResponse) Reset ¶
func (x *GetResourcesResponse) Reset()
func (*GetResourcesResponse) SetResources ¶
func (x *GetResourcesResponse) SetResources(v []*Resource)
func (*GetResourcesResponse) String ¶
func (x *GetResourcesResponse) String() string
type GetResourcesResponse_builder ¶
type GetResourcesResponse_builder struct {
// The found Resources in the same order as requested.
Resources []*Resource
// contains filtered or unexported fields
}
func (GetResourcesResponse_builder) Build ¶
func (b0 GetResourcesResponse_builder) Build() *GetResourcesResponse
type Label ¶
type Label struct {
// The id of the Label.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// The time the Label was created on the BSR.
CreateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// The last time the Label was updated on the BSR.
UpdateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
// The time the Label was archived if it is currently archived.
//
// If this field is not set, the Label is not currently archived.
ArchiveTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=archive_time,json=archiveTime,proto3" json:"archive_time,omitempty"`
// The name of the Label.
//
// Unique within a given Policy.
Name string `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty"`
// The id of the Organization that owns the Policy that the Label is associated with.
OwnerId string `protobuf:"bytes,6,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"`
// The id of the Policy that the Label is associated with.
PolicyId string `protobuf:"bytes,7,opt,name=policy_id,json=policyId,proto3" json:"policy_id,omitempty"`
// The id of the Commit currently associated with the Label.
CommitId string `protobuf:"bytes,8,opt,name=commit_id,json=commitId,proto3" json:"commit_id,omitempty"`
// The id of the User that last updated this Label on the BSR.
//
// May be empty if the User is no longer available.
UpdatedByUserId string `protobuf:"bytes,9,opt,name=updated_by_user_id,json=updatedByUserId,proto3" json:"updated_by_user_id,omitempty"`
// contains filtered or unexported fields
}
A Label on a specific Policy.
Many Labels can be associated with one Commit.
func (*Label) GetArchiveTime ¶
func (x *Label) GetArchiveTime() *timestamppb.Timestamp
func (*Label) GetCreateTime ¶
func (x *Label) GetCreateTime() *timestamppb.Timestamp
func (*Label) GetUpdateTime ¶
func (x *Label) GetUpdateTime() *timestamppb.Timestamp
func (*Label) ProtoReflect ¶
func (x *Label) ProtoReflect() protoreflect.Message
func (*Label) SetArchiveTime ¶
func (x *Label) SetArchiveTime(v *timestamppb.Timestamp)
func (*Label) SetCreateTime ¶
func (x *Label) SetCreateTime(v *timestamppb.Timestamp)
func (*Label) SetUpdateTime ¶
func (x *Label) SetUpdateTime(v *timestamppb.Timestamp)
type LabelRef ¶
type LabelRef struct {
// Types that are valid to be assigned to Value:
//
// *LabelRef_Id
// *LabelRef_Name_
Value isLabelRef_Value `protobuf_oneof:"value"`
// contains filtered or unexported fields
}
LabelRef is a reference to a Label, either an id or a fully-qualified name.
This is used in requests.
func (*LabelRef) GetName ¶
func (x *LabelRef) GetName() *LabelRef_Name
func (*LabelRef) ProtoReflect ¶
func (x *LabelRef) ProtoReflect() protoreflect.Message
func (*LabelRef) SetName ¶
func (x *LabelRef) SetName(v *LabelRef_Name)
type LabelRef_Id ¶
type LabelRef_Id struct {
// The id of the Label.
Id string `protobuf:"bytes,1,opt,name=id,proto3,oneof"`
}
type LabelRef_Name ¶
type LabelRef_Name struct {
// The name of the owner of the Policy that contains the Label, an Organization.
Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"`
// The name of the Policy that contains the Label.
Policy string `protobuf:"bytes,2,opt,name=policy,proto3" json:"policy,omitempty"`
// The Label name.
Label string `protobuf:"bytes,3,opt,name=label,proto3" json:"label,omitempty"`
// contains filtered or unexported fields
}
The fully-qualified name of a Label within a BSR instance.
A Name uniquely identifies a Label. This is used for requests when a caller only has the label name and not the ID.
func (*LabelRef_Name) GetLabel ¶
func (x *LabelRef_Name) GetLabel() string
func (*LabelRef_Name) GetOwner ¶
func (x *LabelRef_Name) GetOwner() string
func (*LabelRef_Name) GetPolicy ¶
func (x *LabelRef_Name) GetPolicy() string
func (*LabelRef_Name) ProtoMessage ¶
func (*LabelRef_Name) ProtoMessage()
func (*LabelRef_Name) ProtoReflect ¶
func (x *LabelRef_Name) ProtoReflect() protoreflect.Message
func (*LabelRef_Name) Reset ¶
func (x *LabelRef_Name) Reset()
func (*LabelRef_Name) SetLabel ¶
func (x *LabelRef_Name) SetLabel(v string)
func (*LabelRef_Name) SetOwner ¶
func (x *LabelRef_Name) SetOwner(v string)
func (*LabelRef_Name) SetPolicy ¶
func (x *LabelRef_Name) SetPolicy(v string)
func (*LabelRef_Name) String ¶
func (x *LabelRef_Name) String() string
type LabelRef_Name_ ¶
type LabelRef_Name_ struct {
// The fully-qualified name of the Label.
Name *LabelRef_Name `protobuf:"bytes,2,opt,name=name,proto3,oneof"`
}
type LabelRef_Name_builder ¶
type LabelRef_Name_builder struct {
// The name of the owner of the Policy that contains the Label, an Organization.
Owner string
// The name of the Policy that contains the Label.
Policy string
// The Label name.
Label string
// contains filtered or unexported fields
}
func (LabelRef_Name_builder) Build ¶
func (b0 LabelRef_Name_builder) Build() *LabelRef_Name
type LabelRef_builder ¶
type LabelRef_builder struct {
// Fields of oneof Value:
// The id of the Label.
Id *string
// The fully-qualified name of the Label.
Name *LabelRef_Name
// contains filtered or unexported fields
}
func (LabelRef_builder) Build ¶
func (b0 LabelRef_builder) Build() *LabelRef
type Label_builder ¶
type Label_builder struct {
// The id of the Label.
Id string
// The time the Label was created on the BSR.
CreateTime *timestamppb.Timestamp
// The last time the Label was updated on the BSR.
UpdateTime *timestamppb.Timestamp
// The time the Label was archived if it is currently archived.
//
// If this field is not set, the Label is not currently archived.
ArchiveTime *timestamppb.Timestamp
// The name of the Label.
//
// Unique within a given Policy.
Name string
// The id of the Organization that owns the Policy that the Label is associated with.
OwnerId string
// The id of the Policy that the Label is associated with.
PolicyId string
// The id of the Commit currently associated with the Label.
CommitId string
// The id of the User that last updated this Label on the BSR.
//
// May be empty if the User is no longer available.
UpdatedByUserId string
// contains filtered or unexported fields
}
func (Label_builder) Build ¶
func (b0 Label_builder) Build() *Label
type ListCommitsRequest ¶
type ListCommitsRequest struct {
// The maximum number of items to return.
//
// The default is 10.
PageSize uint32 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// The page to start from.
//
// If empty, the first page is returned.
PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// The reference to list Commits for.
//
// See the documentation on Ref for resource resolution details.
//
// Once the resource is resolved, the following Commits are listed (subject to any additional filters in the request):
// - If a Policy is referenced, all Commits for the Policy are returned.
// - If a Label is referenced, the Commit the Label points to is returned.
// Use ListLabelHistory to get the history of Commits for a Label.
// - If a Commit is referenced, this Commit is returned.
ResourceRef *ResourceRef `protobuf:"bytes,3,opt,name=resource_ref,json=resourceRef,proto3" json:"resource_ref,omitempty"`
// The order to return the Commits.
//
// If not specified, defaults to ORDER_CREATE_TIME_DESC.
Order ListCommitsRequest_Order `protobuf:"varint,4,opt,name=order,proto3,enum=buf.registry.policy.v1beta1.ListCommitsRequest_Order" json:"order,omitempty"`
// The DigestType to use for Digests returned on Commits.
//
// If this DigestType is not available, an error is returned.
// Note that certain DigestTypes may be deprecated over time.
//
// If not set, the latest DigestType is used, currently O1.
DigestType DigestType `` /* 136-byte string literal not displayed */
// Only return Commits with an id that contains this string using a case-insensitive comparison.
IdQuery string `protobuf:"bytes,5,opt,name=id_query,json=idQuery,proto3" json:"id_query,omitempty"`
// contains filtered or unexported fields
}
func (*ListCommitsRequest) ClearResourceRef ¶
func (x *ListCommitsRequest) ClearResourceRef()
func (*ListCommitsRequest) GetDigestType ¶
func (x *ListCommitsRequest) GetDigestType() DigestType
func (*ListCommitsRequest) GetIdQuery ¶
func (x *ListCommitsRequest) GetIdQuery() string
func (*ListCommitsRequest) GetOrder ¶
func (x *ListCommitsRequest) GetOrder() ListCommitsRequest_Order
func (*ListCommitsRequest) GetPageSize ¶
func (x *ListCommitsRequest) GetPageSize() uint32
func (*ListCommitsRequest) GetPageToken ¶
func (x *ListCommitsRequest) GetPageToken() string
func (*ListCommitsRequest) GetResourceRef ¶
func (x *ListCommitsRequest) GetResourceRef() *ResourceRef
func (*ListCommitsRequest) HasResourceRef ¶
func (x *ListCommitsRequest) HasResourceRef() bool
func (*ListCommitsRequest) ProtoMessage ¶
func (*ListCommitsRequest) ProtoMessage()
func (*ListCommitsRequest) ProtoReflect ¶
func (x *ListCommitsRequest) ProtoReflect() protoreflect.Message
func (*ListCommitsRequest) Reset ¶
func (x *ListCommitsRequest) Reset()
func (*ListCommitsRequest) SetDigestType ¶
func (x *ListCommitsRequest) SetDigestType(v DigestType)
func (*ListCommitsRequest) SetIdQuery ¶
func (x *ListCommitsRequest) SetIdQuery(v string)
func (*ListCommitsRequest) SetOrder ¶
func (x *ListCommitsRequest) SetOrder(v ListCommitsRequest_Order)
func (*ListCommitsRequest) SetPageSize ¶
func (x *ListCommitsRequest) SetPageSize(v uint32)
func (*ListCommitsRequest) SetPageToken ¶
func (x *ListCommitsRequest) SetPageToken(v string)
func (*ListCommitsRequest) SetResourceRef ¶
func (x *ListCommitsRequest) SetResourceRef(v *ResourceRef)
func (*ListCommitsRequest) String ¶
func (x *ListCommitsRequest) String() string
type ListCommitsRequest_Order ¶
type ListCommitsRequest_Order int32
The list order.
const ( ListCommitsRequest_ORDER_UNSPECIFIED ListCommitsRequest_Order = 0 // Order by create_time newest to oldest. ListCommitsRequest_ORDER_CREATE_TIME_DESC ListCommitsRequest_Order = 1 // Order by create_time from oldest to newest. ListCommitsRequest_ORDER_CREATE_TIME_ASC ListCommitsRequest_Order = 2 )
func (ListCommitsRequest_Order) Descriptor ¶
func (ListCommitsRequest_Order) Descriptor() protoreflect.EnumDescriptor
func (ListCommitsRequest_Order) Enum ¶
func (x ListCommitsRequest_Order) Enum() *ListCommitsRequest_Order
func (ListCommitsRequest_Order) Number ¶
func (x ListCommitsRequest_Order) Number() protoreflect.EnumNumber
func (ListCommitsRequest_Order) String ¶
func (x ListCommitsRequest_Order) String() string
func (ListCommitsRequest_Order) Type ¶
func (ListCommitsRequest_Order) Type() protoreflect.EnumType
type ListCommitsRequest_builder ¶
type ListCommitsRequest_builder struct {
// The maximum number of items to return.
//
// The default is 10.
PageSize uint32
// The page to start from.
//
// If empty, the first page is returned.
PageToken string
// The reference to list Commits for.
//
// See the documentation on Ref for resource resolution details.
//
// Once the resource is resolved, the following Commits are listed (subject to any additional filters in the request):
// - If a Policy is referenced, all Commits for the Policy are returned.
// - If a Label is referenced, the Commit the Label points to is returned.
// Use ListLabelHistory to get the history of Commits for a Label.
// - If a Commit is referenced, this Commit is returned.
ResourceRef *ResourceRef
// The order to return the Commits.
//
// If not specified, defaults to ORDER_CREATE_TIME_DESC.
Order ListCommitsRequest_Order
// The DigestType to use for Digests returned on Commits.
//
// If this DigestType is not available, an error is returned.
// Note that certain DigestTypes may be deprecated over time.
//
// If not set, the latest DigestType is used, currently O1.
DigestType DigestType
// Only return Commits with an id that contains this string using a case-insensitive comparison.
IdQuery string
// contains filtered or unexported fields
}
func (ListCommitsRequest_builder) Build ¶
func (b0 ListCommitsRequest_builder) Build() *ListCommitsRequest
type ListCommitsResponse ¶
type ListCommitsResponse struct {
// The next page token.
//
// If empty, there are no more pages.
NextPageToken string `protobuf:"bytes,1,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// The listed Commits.
Commits []*Commit `protobuf:"bytes,2,rep,name=commits,proto3" json:"commits,omitempty"`
// contains filtered or unexported fields
}
func (*ListCommitsResponse) GetCommits ¶
func (x *ListCommitsResponse) GetCommits() []*Commit
func (*ListCommitsResponse) GetNextPageToken ¶
func (x *ListCommitsResponse) GetNextPageToken() string
func (*ListCommitsResponse) ProtoMessage ¶
func (*ListCommitsResponse) ProtoMessage()
func (*ListCommitsResponse) ProtoReflect ¶
func (x *ListCommitsResponse) ProtoReflect() protoreflect.Message
func (*ListCommitsResponse) Reset ¶
func (x *ListCommitsResponse) Reset()
func (*ListCommitsResponse) SetCommits ¶
func (x *ListCommitsResponse) SetCommits(v []*Commit)
func (*ListCommitsResponse) SetNextPageToken ¶
func (x *ListCommitsResponse) SetNextPageToken(v string)
func (*ListCommitsResponse) String ¶
func (x *ListCommitsResponse) String() string
type ListCommitsResponse_builder ¶
type ListCommitsResponse_builder struct {
// The next page token.
//
// If empty, there are no more pages.
NextPageToken string
// The listed Commits.
Commits []*Commit
// contains filtered or unexported fields
}
func (ListCommitsResponse_builder) Build ¶
func (b0 ListCommitsResponse_builder) Build() *ListCommitsResponse
type ListLabelHistoryRequest ¶
type ListLabelHistoryRequest struct {
// The maximum number of items to return.
//
// The default value is 10.
PageSize uint32 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// The page to start from.
//
// If empty, the first page is returned.
PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// The Label to list history for.
//
// This may reference archived Labels.
LabelRef *LabelRef `protobuf:"bytes,3,opt,name=label_ref,json=labelRef,proto3" json:"label_ref,omitempty"`
// The order to list the Labels.
//
// If not specified, defaults to ORDER_DESC.
Order ListLabelHistoryRequest_Order `` /* 127-byte string literal not displayed */
// The DigestType to use for Digests returned on Commits.
// If this DigestType is not available, an error is returned. Note that certain DigestTypes may be
// If not set, the latest DigestType is used, currently O1.
DigestType DigestType `` /* 136-byte string literal not displayed */
// The Commit id to start from.
//
// It is an error to provide a Commit id that doesn't exist on the Label.
StartCommitId string `protobuf:"bytes,5,opt,name=start_commit_id,json=startCommitId,proto3" json:"start_commit_id,omitempty"`
// contains filtered or unexported fields
}
func (*ListLabelHistoryRequest) ClearLabelRef ¶
func (x *ListLabelHistoryRequest) ClearLabelRef()
func (*ListLabelHistoryRequest) GetDigestType ¶
func (x *ListLabelHistoryRequest) GetDigestType() DigestType
func (*ListLabelHistoryRequest) GetLabelRef ¶
func (x *ListLabelHistoryRequest) GetLabelRef() *LabelRef
func (*ListLabelHistoryRequest) GetOrder ¶
func (x *ListLabelHistoryRequest) GetOrder() ListLabelHistoryRequest_Order
func (*ListLabelHistoryRequest) GetPageSize ¶
func (x *ListLabelHistoryRequest) GetPageSize() uint32
func (*ListLabelHistoryRequest) GetPageToken ¶
func (x *ListLabelHistoryRequest) GetPageToken() string
func (*ListLabelHistoryRequest) GetStartCommitId ¶
func (x *ListLabelHistoryRequest) GetStartCommitId() string
func (*ListLabelHistoryRequest) HasLabelRef ¶
func (x *ListLabelHistoryRequest) HasLabelRef() bool
func (*ListLabelHistoryRequest) ProtoMessage ¶
func (*ListLabelHistoryRequest) ProtoMessage()
func (*ListLabelHistoryRequest) ProtoReflect ¶
func (x *ListLabelHistoryRequest) ProtoReflect() protoreflect.Message
func (*ListLabelHistoryRequest) Reset ¶
func (x *ListLabelHistoryRequest) Reset()
func (*ListLabelHistoryRequest) SetDigestType ¶
func (x *ListLabelHistoryRequest) SetDigestType(v DigestType)
func (*ListLabelHistoryRequest) SetLabelRef ¶
func (x *ListLabelHistoryRequest) SetLabelRef(v *LabelRef)
func (*ListLabelHistoryRequest) SetOrder ¶
func (x *ListLabelHistoryRequest) SetOrder(v ListLabelHistoryRequest_Order)
func (*ListLabelHistoryRequest) SetPageSize ¶
func (x *ListLabelHistoryRequest) SetPageSize(v uint32)
func (*ListLabelHistoryRequest) SetPageToken ¶
func (x *ListLabelHistoryRequest) SetPageToken(v string)
func (*ListLabelHistoryRequest) SetStartCommitId ¶
func (x *ListLabelHistoryRequest) SetStartCommitId(v string)
func (*ListLabelHistoryRequest) String ¶
func (x *ListLabelHistoryRequest) String() string
type ListLabelHistoryRequest_Order ¶
type ListLabelHistoryRequest_Order int32
The list order.
const ( ListLabelHistoryRequest_ORDER_UNSPECIFIED ListLabelHistoryRequest_Order = 0 // Order by association time newest to oldest. // // The Commits most recently associated with the Label will be listed first. ListLabelHistoryRequest_ORDER_DESC ListLabelHistoryRequest_Order = 1 // Order by association time oldest to newest. ListLabelHistoryRequest_ORDER_ASC ListLabelHistoryRequest_Order = 2 )
func (ListLabelHistoryRequest_Order) Descriptor ¶
func (ListLabelHistoryRequest_Order) Descriptor() protoreflect.EnumDescriptor
func (ListLabelHistoryRequest_Order) Enum ¶
func (x ListLabelHistoryRequest_Order) Enum() *ListLabelHistoryRequest_Order
func (ListLabelHistoryRequest_Order) Number ¶
func (x ListLabelHistoryRequest_Order) Number() protoreflect.EnumNumber
func (ListLabelHistoryRequest_Order) String ¶
func (x ListLabelHistoryRequest_Order) String() string
func (ListLabelHistoryRequest_Order) Type ¶
func (ListLabelHistoryRequest_Order) Type() protoreflect.EnumType
type ListLabelHistoryRequest_builder ¶
type ListLabelHistoryRequest_builder struct {
// The maximum number of items to return.
//
// The default value is 10.
PageSize uint32
// The page to start from.
//
// If empty, the first page is returned.
PageToken string
// The Label to list history for.
//
// This may reference archived Labels.
LabelRef *LabelRef
// The order to list the Labels.
//
// If not specified, defaults to ORDER_DESC.
Order ListLabelHistoryRequest_Order
// The DigestType to use for Digests returned on Commits.
// If this DigestType is not available, an error is returned. Note that certain DigestTypes may be
// If not set, the latest DigestType is used, currently O1.
DigestType DigestType
// The Commit id to start from.
//
// It is an error to provide a Commit id that doesn't exist on the Label.
StartCommitId string
// contains filtered or unexported fields
}
func (ListLabelHistoryRequest_builder) Build ¶
func (b0 ListLabelHistoryRequest_builder) Build() *ListLabelHistoryRequest
type ListLabelHistoryResponse ¶
type ListLabelHistoryResponse struct {
// The next page token.
//
// If empty, there are no more pages.
NextPageToken string `protobuf:"bytes,1,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// The ordered history of the Label.
Values []*ListLabelHistoryResponse_Value `protobuf:"bytes,2,rep,name=values,proto3" json:"values,omitempty"`
// contains filtered or unexported fields
}
func (*ListLabelHistoryResponse) GetNextPageToken ¶
func (x *ListLabelHistoryResponse) GetNextPageToken() string
func (*ListLabelHistoryResponse) GetValues ¶
func (x *ListLabelHistoryResponse) GetValues() []*ListLabelHistoryResponse_Value
func (*ListLabelHistoryResponse) ProtoMessage ¶
func (*ListLabelHistoryResponse) ProtoMessage()
func (*ListLabelHistoryResponse) ProtoReflect ¶
func (x *ListLabelHistoryResponse) ProtoReflect() protoreflect.Message
func (*ListLabelHistoryResponse) Reset ¶
func (x *ListLabelHistoryResponse) Reset()
func (*ListLabelHistoryResponse) SetNextPageToken ¶
func (x *ListLabelHistoryResponse) SetNextPageToken(v string)
func (*ListLabelHistoryResponse) SetValues ¶
func (x *ListLabelHistoryResponse) SetValues(v []*ListLabelHistoryResponse_Value)
func (*ListLabelHistoryResponse) String ¶
func (x *ListLabelHistoryResponse) String() string
type ListLabelHistoryResponse_Value ¶
type ListLabelHistoryResponse_Value struct {
// The Commit.
Commit *Commit `protobuf:"bytes,1,opt,name=commit,proto3" json:"commit,omitempty"`
// contains filtered or unexported fields
}
func (*ListLabelHistoryResponse_Value) ClearCommit ¶
func (x *ListLabelHistoryResponse_Value) ClearCommit()
func (*ListLabelHistoryResponse_Value) GetCommit ¶
func (x *ListLabelHistoryResponse_Value) GetCommit() *Commit
func (*ListLabelHistoryResponse_Value) HasCommit ¶
func (x *ListLabelHistoryResponse_Value) HasCommit() bool
func (*ListLabelHistoryResponse_Value) ProtoMessage ¶
func (*ListLabelHistoryResponse_Value) ProtoMessage()
func (*ListLabelHistoryResponse_Value) ProtoReflect ¶
func (x *ListLabelHistoryResponse_Value) ProtoReflect() protoreflect.Message
func (*ListLabelHistoryResponse_Value) Reset ¶
func (x *ListLabelHistoryResponse_Value) Reset()
func (*ListLabelHistoryResponse_Value) SetCommit ¶
func (x *ListLabelHistoryResponse_Value) SetCommit(v *Commit)
func (*ListLabelHistoryResponse_Value) String ¶
func (x *ListLabelHistoryResponse_Value) String() string
type ListLabelHistoryResponse_Value_builder ¶
type ListLabelHistoryResponse_Value_builder struct {
// The Commit.
Commit *Commit
// contains filtered or unexported fields
}
func (ListLabelHistoryResponse_Value_builder) Build ¶
func (b0 ListLabelHistoryResponse_Value_builder) Build() *ListLabelHistoryResponse_Value
type ListLabelHistoryResponse_builder ¶
type ListLabelHistoryResponse_builder struct {
// The next page token.
//
// If empty, there are no more pages.
NextPageToken string
// The ordered history of the Label.
Values []*ListLabelHistoryResponse_Value
// contains filtered or unexported fields
}
func (ListLabelHistoryResponse_builder) Build ¶
func (b0 ListLabelHistoryResponse_builder) Build() *ListLabelHistoryResponse
type ListLabelsRequest ¶
type ListLabelsRequest struct {
// The maximum number of items to return.
//
// The default value is 10.
PageSize uint32 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// The page to start from.
//
// If empty, the first page is returned.
PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// The reference to list Labels for.
//
// See the documentation on Ref for resource resolution details.
//
// Once the resource is resolved, the following Labels are listed (subject to any additional
// filters in the request):
// - If a Policy is referenced, all Labels for the Policy are returned.
// - If a Label is referenced, this Label is returned.
// - If a Commit is referenced, all Labels that currently point to the Commit are returned.
ResourceRef *ResourceRef `protobuf:"bytes,3,opt,name=resource_ref,json=resourceRef,proto3" json:"resource_ref,omitempty"`
// The order to return the Labels.
//
// If not specified, defaults to ORDER_CREATE_TIME_DESC.
Order ListLabelsRequest_Order `protobuf:"varint,4,opt,name=order,proto3,enum=buf.registry.policy.v1beta1.ListLabelsRequest_Order" json:"order,omitempty"`
// Only return Labels with a name that contains this string using a case-insensitive comparison.
NameQuery string `protobuf:"bytes,5,opt,name=name_query,json=nameQuery,proto3" json:"name_query,omitempty"`
// The archive filter on the returned Labels.
//
// If not specified, defaults to ARCHIVE_FILTER_UNARCHIVED_ONLY.
ArchiveFilter ListLabelsRequest_ArchiveFilter `` /* 166-byte string literal not displayed */
// contains filtered or unexported fields
}
func (*ListLabelsRequest) ClearResourceRef ¶
func (x *ListLabelsRequest) ClearResourceRef()
func (*ListLabelsRequest) GetArchiveFilter ¶
func (x *ListLabelsRequest) GetArchiveFilter() ListLabelsRequest_ArchiveFilter
func (*ListLabelsRequest) GetNameQuery ¶
func (x *ListLabelsRequest) GetNameQuery() string
func (*ListLabelsRequest) GetOrder ¶
func (x *ListLabelsRequest) GetOrder() ListLabelsRequest_Order
func (*ListLabelsRequest) GetPageSize ¶
func (x *ListLabelsRequest) GetPageSize() uint32
func (*ListLabelsRequest) GetPageToken ¶
func (x *ListLabelsRequest) GetPageToken() string
func (*ListLabelsRequest) GetResourceRef ¶
func (x *ListLabelsRequest) GetResourceRef() *ResourceRef
func (*ListLabelsRequest) HasResourceRef ¶
func (x *ListLabelsRequest) HasResourceRef() bool
func (*ListLabelsRequest) ProtoMessage ¶
func (*ListLabelsRequest) ProtoMessage()
func (*ListLabelsRequest) ProtoReflect ¶
func (x *ListLabelsRequest) ProtoReflect() protoreflect.Message
func (*ListLabelsRequest) Reset ¶
func (x *ListLabelsRequest) Reset()
func (*ListLabelsRequest) SetArchiveFilter ¶
func (x *ListLabelsRequest) SetArchiveFilter(v ListLabelsRequest_ArchiveFilter)
func (*ListLabelsRequest) SetNameQuery ¶
func (x *ListLabelsRequest) SetNameQuery(v string)
func (*ListLabelsRequest) SetOrder ¶
func (x *ListLabelsRequest) SetOrder(v ListLabelsRequest_Order)
func (*ListLabelsRequest) SetPageSize ¶
func (x *ListLabelsRequest) SetPageSize(v uint32)
func (*ListLabelsRequest) SetPageToken ¶
func (x *ListLabelsRequest) SetPageToken(v string)
func (*ListLabelsRequest) SetResourceRef ¶
func (x *ListLabelsRequest) SetResourceRef(v *ResourceRef)
func (*ListLabelsRequest) String ¶
func (x *ListLabelsRequest) String() string
type ListLabelsRequest_ArchiveFilter ¶
type ListLabelsRequest_ArchiveFilter int32
A filter on whether a Label is archived or not.
const ( ListLabelsRequest_ARCHIVE_FILTER_UNSPECIFIED ListLabelsRequest_ArchiveFilter = 0 // Return only unarchived labels. ListLabelsRequest_ARCHIVE_FILTER_UNARCHIVED_ONLY ListLabelsRequest_ArchiveFilter = 1 // Return only archived labels. ListLabelsRequest_ARCHIVE_FILTER_ARCHIVED_ONLY ListLabelsRequest_ArchiveFilter = 2 // Return both archived and unarchived labels. ListLabelsRequest_ARCHIVE_FILTER_ALL ListLabelsRequest_ArchiveFilter = 3 )
func (ListLabelsRequest_ArchiveFilter) Descriptor ¶
func (ListLabelsRequest_ArchiveFilter) Descriptor() protoreflect.EnumDescriptor
func (ListLabelsRequest_ArchiveFilter) Enum ¶
func (x ListLabelsRequest_ArchiveFilter) Enum() *ListLabelsRequest_ArchiveFilter
func (ListLabelsRequest_ArchiveFilter) Number ¶
func (x ListLabelsRequest_ArchiveFilter) Number() protoreflect.EnumNumber
func (ListLabelsRequest_ArchiveFilter) String ¶
func (x ListLabelsRequest_ArchiveFilter) String() string
func (ListLabelsRequest_ArchiveFilter) Type ¶
func (ListLabelsRequest_ArchiveFilter) Type() protoreflect.EnumType
type ListLabelsRequest_Order ¶
type ListLabelsRequest_Order int32
The list order.
const ( ListLabelsRequest_ORDER_UNSPECIFIED ListLabelsRequest_Order = 0 // Order by create_time newest to oldest. ListLabelsRequest_ORDER_CREATE_TIME_DESC ListLabelsRequest_Order = 1 // Order by create_time oldest to newest. ListLabelsRequest_ORDER_CREATE_TIME_ASC ListLabelsRequest_Order = 2 // Order by update_time newest to oldest. ListLabelsRequest_ORDER_UPDATE_TIME_DESC ListLabelsRequest_Order = 3 // Order by update_time oldest to newest. ListLabelsRequest_ORDER_UPDATE_TIME_ASC ListLabelsRequest_Order = 4 )
func (ListLabelsRequest_Order) Descriptor ¶
func (ListLabelsRequest_Order) Descriptor() protoreflect.EnumDescriptor
func (ListLabelsRequest_Order) Enum ¶
func (x ListLabelsRequest_Order) Enum() *ListLabelsRequest_Order
func (ListLabelsRequest_Order) Number ¶
func (x ListLabelsRequest_Order) Number() protoreflect.EnumNumber
func (ListLabelsRequest_Order) String ¶
func (x ListLabelsRequest_Order) String() string
func (ListLabelsRequest_Order) Type ¶
func (ListLabelsRequest_Order) Type() protoreflect.EnumType
type ListLabelsRequest_builder ¶
type ListLabelsRequest_builder struct {
// The maximum number of items to return.
//
// The default value is 10.
PageSize uint32
// The page to start from.
//
// If empty, the first page is returned.
PageToken string
// The reference to list Labels for.
//
// See the documentation on Ref for resource resolution details.
//
// Once the resource is resolved, the following Labels are listed (subject to any additional
// filters in the request):
// - If a Policy is referenced, all Labels for the Policy are returned.
// - If a Label is referenced, this Label is returned.
// - If a Commit is referenced, all Labels that currently point to the Commit are returned.
ResourceRef *ResourceRef
// The order to return the Labels.
//
// If not specified, defaults to ORDER_CREATE_TIME_DESC.
Order ListLabelsRequest_Order
// Only return Labels with a name that contains this string using a case-insensitive comparison.
NameQuery string
// The archive filter on the returned Labels.
//
// If not specified, defaults to ARCHIVE_FILTER_UNARCHIVED_ONLY.
ArchiveFilter ListLabelsRequest_ArchiveFilter
// contains filtered or unexported fields
}
func (ListLabelsRequest_builder) Build ¶
func (b0 ListLabelsRequest_builder) Build() *ListLabelsRequest
type ListLabelsResponse ¶
type ListLabelsResponse struct {
// The next page token.
//
// If empty, there are no more pages.
NextPageToken string `protobuf:"bytes,1,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// The listed Labels.
Labels []*Label `protobuf:"bytes,2,rep,name=labels,proto3" json:"labels,omitempty"`
// contains filtered or unexported fields
}
func (*ListLabelsResponse) GetLabels ¶
func (x *ListLabelsResponse) GetLabels() []*Label
func (*ListLabelsResponse) GetNextPageToken ¶
func (x *ListLabelsResponse) GetNextPageToken() string
func (*ListLabelsResponse) ProtoMessage ¶
func (*ListLabelsResponse) ProtoMessage()
func (*ListLabelsResponse) ProtoReflect ¶
func (x *ListLabelsResponse) ProtoReflect() protoreflect.Message
func (*ListLabelsResponse) Reset ¶
func (x *ListLabelsResponse) Reset()
func (*ListLabelsResponse) SetLabels ¶
func (x *ListLabelsResponse) SetLabels(v []*Label)
func (*ListLabelsResponse) SetNextPageToken ¶
func (x *ListLabelsResponse) SetNextPageToken(v string)
func (*ListLabelsResponse) String ¶
func (x *ListLabelsResponse) String() string
type ListLabelsResponse_builder ¶
type ListLabelsResponse_builder struct {
// The next page token.
//
// If empty, there are no more pages.
NextPageToken string
// The listed Labels.
Labels []*Label
// contains filtered or unexported fields
}
func (ListLabelsResponse_builder) Build ¶
func (b0 ListLabelsResponse_builder) Build() *ListLabelsResponse
type ListPoliciesRequest ¶
type ListPoliciesRequest struct {
// The maximum number of items to return.
//
// The default value is 10.
PageSize uint32 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// The page to start from.
//
// If empty, the first page is returned.
PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// The specific Users or Organizations to list Policies for.
//
// If empty, all Policies for all owners are listed, but this functionality
// is limited to Users with the necessary permissions.
OwnerRefs []*v1.OwnerRef `protobuf:"bytes,3,rep,name=owner_refs,json=ownerRefs,proto3" json:"owner_refs,omitempty"`
// The order to return the Policies.
//
// If not specified, defaults to ORDER_CREATE_TIME_DESC.
Order ListPoliciesRequest_Order `protobuf:"varint,4,opt,name=order,proto3,enum=buf.registry.policy.v1beta1.ListPoliciesRequest_Order" json:"order,omitempty"`
// contains filtered or unexported fields
}
func (*ListPoliciesRequest) GetOrder ¶
func (x *ListPoliciesRequest) GetOrder() ListPoliciesRequest_Order
func (*ListPoliciesRequest) GetOwnerRefs ¶
func (x *ListPoliciesRequest) GetOwnerRefs() []*v1.OwnerRef
func (*ListPoliciesRequest) GetPageSize ¶
func (x *ListPoliciesRequest) GetPageSize() uint32
func (*ListPoliciesRequest) GetPageToken ¶
func (x *ListPoliciesRequest) GetPageToken() string
func (*ListPoliciesRequest) ProtoMessage ¶
func (*ListPoliciesRequest) ProtoMessage()
func (*ListPoliciesRequest) ProtoReflect ¶
func (x *ListPoliciesRequest) ProtoReflect() protoreflect.Message
func (*ListPoliciesRequest) Reset ¶
func (x *ListPoliciesRequest) Reset()
func (*ListPoliciesRequest) SetOrder ¶
func (x *ListPoliciesRequest) SetOrder(v ListPoliciesRequest_Order)
func (*ListPoliciesRequest) SetOwnerRefs ¶
func (x *ListPoliciesRequest) SetOwnerRefs(v []*v1.OwnerRef)
func (*ListPoliciesRequest) SetPageSize ¶
func (x *ListPoliciesRequest) SetPageSize(v uint32)
func (*ListPoliciesRequest) SetPageToken ¶
func (x *ListPoliciesRequest) SetPageToken(v string)
func (*ListPoliciesRequest) String ¶
func (x *ListPoliciesRequest) String() string
type ListPoliciesRequest_Order ¶
type ListPoliciesRequest_Order int32
The list order.
const ( ListPoliciesRequest_ORDER_UNSPECIFIED ListPoliciesRequest_Order = 0 // Order by create_time newest to oldest. ListPoliciesRequest_ORDER_CREATE_TIME_DESC ListPoliciesRequest_Order = 1 // Order by create_time oldest to newest. ListPoliciesRequest_ORDER_CREATE_TIME_ASC ListPoliciesRequest_Order = 2 )
func (ListPoliciesRequest_Order) Descriptor ¶
func (ListPoliciesRequest_Order) Descriptor() protoreflect.EnumDescriptor
func (ListPoliciesRequest_Order) Enum ¶
func (x ListPoliciesRequest_Order) Enum() *ListPoliciesRequest_Order
func (ListPoliciesRequest_Order) Number ¶
func (x ListPoliciesRequest_Order) Number() protoreflect.EnumNumber
func (ListPoliciesRequest_Order) String ¶
func (x ListPoliciesRequest_Order) String() string
func (ListPoliciesRequest_Order) Type ¶
func (ListPoliciesRequest_Order) Type() protoreflect.EnumType
type ListPoliciesRequest_builder ¶
type ListPoliciesRequest_builder struct {
// The maximum number of items to return.
//
// The default value is 10.
PageSize uint32
// The page to start from.
//
// If empty, the first page is returned.
PageToken string
// The specific Users or Organizations to list Policies for.
//
// If empty, all Policies for all owners are listed, but this functionality
// is limited to Users with the necessary permissions.
OwnerRefs []*v1.OwnerRef
// The order to return the Policies.
//
// If not specified, defaults to ORDER_CREATE_TIME_DESC.
Order ListPoliciesRequest_Order
// contains filtered or unexported fields
}
func (ListPoliciesRequest_builder) Build ¶
func (b0 ListPoliciesRequest_builder) Build() *ListPoliciesRequest
type ListPoliciesResponse ¶
type ListPoliciesResponse struct {
// The next page token.
//
// If empty, there are no more pages.
NextPageToken string `protobuf:"bytes,1,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// The listed Policies.
Policies []*Policy `protobuf:"bytes,2,rep,name=policies,proto3" json:"policies,omitempty"`
// contains filtered or unexported fields
}
func (*ListPoliciesResponse) GetNextPageToken ¶
func (x *ListPoliciesResponse) GetNextPageToken() string
func (*ListPoliciesResponse) GetPolicies ¶
func (x *ListPoliciesResponse) GetPolicies() []*Policy
func (*ListPoliciesResponse) ProtoMessage ¶
func (*ListPoliciesResponse) ProtoMessage()
func (*ListPoliciesResponse) ProtoReflect ¶
func (x *ListPoliciesResponse) ProtoReflect() protoreflect.Message
func (*ListPoliciesResponse) Reset ¶
func (x *ListPoliciesResponse) Reset()
func (*ListPoliciesResponse) SetNextPageToken ¶
func (x *ListPoliciesResponse) SetNextPageToken(v string)
func (*ListPoliciesResponse) SetPolicies ¶
func (x *ListPoliciesResponse) SetPolicies(v []*Policy)
func (*ListPoliciesResponse) String ¶
func (x *ListPoliciesResponse) String() string
type ListPoliciesResponse_builder ¶
type ListPoliciesResponse_builder struct {
// The next page token.
//
// If empty, there are no more pages.
NextPageToken string
// The listed Policies.
Policies []*Policy
// contains filtered or unexported fields
}
func (ListPoliciesResponse_builder) Build ¶
func (b0 ListPoliciesResponse_builder) Build() *ListPoliciesResponse
type Policy ¶
type Policy struct {
// The id of the Policy.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// The time the Policy was created in the BSR.
CreateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// The last time the Policy was updated on the BSR.
UpdateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
// The name of the Policy.
//
// Unique within a given Organization.
Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
// The id of the Organization that owns the Policy.
OwnerId string `protobuf:"bytes,5,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"`
// The Policy's visibility, either public or private.
Visibility PolicyVisibility `protobuf:"varint,6,opt,name=visibility,proto3,enum=buf.registry.policy.v1beta1.PolicyVisibility" json:"visibility,omitempty"`
// The Policy state, either active or deprecated.
State PolicyState `protobuf:"varint,7,opt,name=state,proto3,enum=buf.registry.policy.v1beta1.PolicyState" json:"state,omitempty"`
// The configurable description of the Policy.
Description string `protobuf:"bytes,8,opt,name=description,proto3" json:"description,omitempty"`
// contains filtered or unexported fields
}
A policy within the BSR.
func (*Policy) GetCreateTime ¶
func (x *Policy) GetCreateTime() *timestamppb.Timestamp
func (*Policy) GetState ¶
func (x *Policy) GetState() PolicyState
func (*Policy) GetUpdateTime ¶
func (x *Policy) GetUpdateTime() *timestamppb.Timestamp
func (*Policy) GetVisibility ¶
func (x *Policy) GetVisibility() PolicyVisibility
func (*Policy) ProtoReflect ¶
func (x *Policy) ProtoReflect() protoreflect.Message
func (*Policy) SetCreateTime ¶
func (x *Policy) SetCreateTime(v *timestamppb.Timestamp)
func (*Policy) SetState ¶
func (x *Policy) SetState(v PolicyState)
func (*Policy) SetUpdateTime ¶
func (x *Policy) SetUpdateTime(v *timestamppb.Timestamp)
func (*Policy) SetVisibility ¶
func (x *Policy) SetVisibility(v PolicyVisibility)
type PolicyConfig ¶
type PolicyConfig struct {
// The lint config.
Lint *PolicyConfig_LintConfig `protobuf:"bytes,1,opt,name=lint,proto3" json:"lint,omitempty"`
// The breaking config.
Breaking *PolicyConfig_BreakingConfig `protobuf:"bytes,2,opt,name=breaking,proto3" json:"breaking,omitempty"`
// The check plugin configs.
Plugins []*PolicyConfig_CheckPluginConfig `protobuf:"bytes,3,rep,name=plugins,proto3" json:"plugins,omitempty"`
// contains filtered or unexported fields
}
PolicyConfig is the Policy's configuration. This consists of the lint, breaking, and plugin configurations required to run the Policy.
func (*PolicyConfig) ClearBreaking ¶
func (x *PolicyConfig) ClearBreaking()
func (*PolicyConfig) ClearLint ¶
func (x *PolicyConfig) ClearLint()
func (*PolicyConfig) GetBreaking ¶
func (x *PolicyConfig) GetBreaking() *PolicyConfig_BreakingConfig
func (*PolicyConfig) GetLint ¶
func (x *PolicyConfig) GetLint() *PolicyConfig_LintConfig
func (*PolicyConfig) GetPlugins ¶
func (x *PolicyConfig) GetPlugins() []*PolicyConfig_CheckPluginConfig
func (*PolicyConfig) HasBreaking ¶
func (x *PolicyConfig) HasBreaking() bool
func (*PolicyConfig) HasLint ¶
func (x *PolicyConfig) HasLint() bool
func (*PolicyConfig) ProtoMessage ¶
func (*PolicyConfig) ProtoMessage()
func (*PolicyConfig) ProtoReflect ¶
func (x *PolicyConfig) ProtoReflect() protoreflect.Message
func (*PolicyConfig) Reset ¶
func (x *PolicyConfig) Reset()
func (*PolicyConfig) SetBreaking ¶
func (x *PolicyConfig) SetBreaking(v *PolicyConfig_BreakingConfig)
func (*PolicyConfig) SetLint ¶
func (x *PolicyConfig) SetLint(v *PolicyConfig_LintConfig)
func (*PolicyConfig) SetPlugins ¶
func (x *PolicyConfig) SetPlugins(v []*PolicyConfig_CheckPluginConfig)
func (*PolicyConfig) String ¶
func (x *PolicyConfig) String() string
type PolicyConfig_BreakingConfig ¶
type PolicyConfig_BreakingConfig struct {
// The list of check rules and/or categories used for the Policy.
Use []string `protobuf:"bytes,1,rep,name=use,proto3" json:"use,omitempty"`
// The list of check rules and/or categories to exclude for the Policy.
Except []string `protobuf:"bytes,2,rep,name=except,proto3" json:"except,omitempty"`
// This bool determines whether to ignore unstable packages for breaking change detection:
// - v\d+test.*
// - v\d+(alpha|beta)\d*
// - v\d+p\d+(alpha|beta)\d*
IgnoreUnstablePackages bool `` /* 130-byte string literal not displayed */
// The bool disables the builtin rules and categories.
DisableBuiltin bool `protobuf:"varint,4,opt,name=disable_builtin,json=disableBuiltin,proto3" json:"disable_builtin,omitempty"`
// contains filtered or unexported fields
}
A breaking config consists of the generic check config and additional breaking-specifc configs required for running breaking change detection.
func (*PolicyConfig_BreakingConfig) GetDisableBuiltin ¶
func (x *PolicyConfig_BreakingConfig) GetDisableBuiltin() bool
func (*PolicyConfig_BreakingConfig) GetExcept ¶
func (x *PolicyConfig_BreakingConfig) GetExcept() []string
func (*PolicyConfig_BreakingConfig) GetIgnoreUnstablePackages ¶
func (x *PolicyConfig_BreakingConfig) GetIgnoreUnstablePackages() bool
func (*PolicyConfig_BreakingConfig) GetUse ¶
func (x *PolicyConfig_BreakingConfig) GetUse() []string
func (*PolicyConfig_BreakingConfig) ProtoMessage ¶
func (*PolicyConfig_BreakingConfig) ProtoMessage()
func (*PolicyConfig_BreakingConfig) ProtoReflect ¶
func (x *PolicyConfig_BreakingConfig) ProtoReflect() protoreflect.Message
func (*PolicyConfig_BreakingConfig) Reset ¶
func (x *PolicyConfig_BreakingConfig) Reset()
func (*PolicyConfig_BreakingConfig) SetDisableBuiltin ¶
func (x *PolicyConfig_BreakingConfig) SetDisableBuiltin(v bool)
func (*PolicyConfig_BreakingConfig) SetExcept ¶
func (x *PolicyConfig_BreakingConfig) SetExcept(v []string)
func (*PolicyConfig_BreakingConfig) SetIgnoreUnstablePackages ¶
func (x *PolicyConfig_BreakingConfig) SetIgnoreUnstablePackages(v bool)
func (*PolicyConfig_BreakingConfig) SetUse ¶
func (x *PolicyConfig_BreakingConfig) SetUse(v []string)
func (*PolicyConfig_BreakingConfig) String ¶
func (x *PolicyConfig_BreakingConfig) String() string
type PolicyConfig_BreakingConfig_builder ¶
type PolicyConfig_BreakingConfig_builder struct {
// The list of check rules and/or categories used for the Policy.
Use []string
// The list of check rules and/or categories to exclude for the Policy.
Except []string
// This bool determines whether to ignore unstable packages for breaking change detection:
// - v\d+test.*
// - v\d+(alpha|beta)\d*
// - v\d+p\d+(alpha|beta)\d*
IgnoreUnstablePackages bool
// The bool disables the builtin rules and categories.
DisableBuiltin bool
// contains filtered or unexported fields
}
func (PolicyConfig_BreakingConfig_builder) Build ¶
func (b0 PolicyConfig_BreakingConfig_builder) Build() *PolicyConfig_BreakingConfig
type PolicyConfig_CheckPluginConfig ¶
type PolicyConfig_CheckPluginConfig struct {
// The Plugin name.
Name *PolicyConfig_CheckPluginConfig_Name `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// The Options for the Plugin.
Options []*v1.Option `protobuf:"bytes,3,rep,name=options,proto3" json:"options,omitempty"`
// The arguments to invoke the Plugin with.
Args []string `protobuf:"bytes,4,rep,name=args,proto3" json:"args,omitempty"`
// contains filtered or unexported fields
}
A plugin config consists of the configs for invoking a check plugin.
func (*PolicyConfig_CheckPluginConfig) ClearName ¶
func (x *PolicyConfig_CheckPluginConfig) ClearName()
func (*PolicyConfig_CheckPluginConfig) GetArgs ¶
func (x *PolicyConfig_CheckPluginConfig) GetArgs() []string
func (*PolicyConfig_CheckPluginConfig) GetName ¶
func (x *PolicyConfig_CheckPluginConfig) GetName() *PolicyConfig_CheckPluginConfig_Name
func (*PolicyConfig_CheckPluginConfig) GetOptions ¶
func (x *PolicyConfig_CheckPluginConfig) GetOptions() []*v1.Option
func (*PolicyConfig_CheckPluginConfig) HasName ¶
func (x *PolicyConfig_CheckPluginConfig) HasName() bool
func (*PolicyConfig_CheckPluginConfig) ProtoMessage ¶
func (*PolicyConfig_CheckPluginConfig) ProtoMessage()
func (*PolicyConfig_CheckPluginConfig) ProtoReflect ¶
func (x *PolicyConfig_CheckPluginConfig) ProtoReflect() protoreflect.Message
func (*PolicyConfig_CheckPluginConfig) Reset ¶
func (x *PolicyConfig_CheckPluginConfig) Reset()
func (*PolicyConfig_CheckPluginConfig) SetArgs ¶
func (x *PolicyConfig_CheckPluginConfig) SetArgs(v []string)
func (*PolicyConfig_CheckPluginConfig) SetName ¶
func (x *PolicyConfig_CheckPluginConfig) SetName(v *PolicyConfig_CheckPluginConfig_Name)
func (*PolicyConfig_CheckPluginConfig) SetOptions ¶
func (x *PolicyConfig_CheckPluginConfig) SetOptions(v []*v1.Option)
func (*PolicyConfig_CheckPluginConfig) String ¶
func (x *PolicyConfig_CheckPluginConfig) String() string
type PolicyConfig_CheckPluginConfig_Name ¶
type PolicyConfig_CheckPluginConfig_Name struct {
// The name of the Organization owner.
Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"`
// The name of the Plugin.
Plugin string `protobuf:"bytes,2,opt,name=plugin,proto3" json:"plugin,omitempty"`
// The untyped reference, applying the semantics as documented on the Name message.
//
// If this value is present but empty, this should be treated as not present, that is an empty
// value is the same as a null value.
Ref string `protobuf:"bytes,3,opt,name=ref,proto3" json:"ref,omitempty"`
// contains filtered or unexported fields
}
The fully-qualified name of a check Plugin within a BSR instance.
If an untyped reference is specified it is interpreted to either be an Commit id or Label name. If no reference is set, then at the time of running the Policy, the latest commit on the default label of the Plugin is used.
func (*PolicyConfig_CheckPluginConfig_Name) GetOwner ¶
func (x *PolicyConfig_CheckPluginConfig_Name) GetOwner() string
func (*PolicyConfig_CheckPluginConfig_Name) GetPlugin ¶
func (x *PolicyConfig_CheckPluginConfig_Name) GetPlugin() string
func (*PolicyConfig_CheckPluginConfig_Name) GetRef ¶
func (x *PolicyConfig_CheckPluginConfig_Name) GetRef() string
func (*PolicyConfig_CheckPluginConfig_Name) ProtoMessage ¶
func (*PolicyConfig_CheckPluginConfig_Name) ProtoMessage()
func (*PolicyConfig_CheckPluginConfig_Name) ProtoReflect ¶
func (x *PolicyConfig_CheckPluginConfig_Name) ProtoReflect() protoreflect.Message
func (*PolicyConfig_CheckPluginConfig_Name) Reset ¶
func (x *PolicyConfig_CheckPluginConfig_Name) Reset()
func (*PolicyConfig_CheckPluginConfig_Name) SetOwner ¶
func (x *PolicyConfig_CheckPluginConfig_Name) SetOwner(v string)
func (*PolicyConfig_CheckPluginConfig_Name) SetPlugin ¶
func (x *PolicyConfig_CheckPluginConfig_Name) SetPlugin(v string)
func (*PolicyConfig_CheckPluginConfig_Name) SetRef ¶
func (x *PolicyConfig_CheckPluginConfig_Name) SetRef(v string)
func (*PolicyConfig_CheckPluginConfig_Name) String ¶
func (x *PolicyConfig_CheckPluginConfig_Name) String() string
type PolicyConfig_CheckPluginConfig_Name_builder ¶
type PolicyConfig_CheckPluginConfig_Name_builder struct {
// The name of the Organization owner.
Owner string
// The name of the Plugin.
Plugin string
// The untyped reference, applying the semantics as documented on the Name message.
//
// If this value is present but empty, this should be treated as not present, that is an empty
// value is the same as a null value.
Ref string
// contains filtered or unexported fields
}
func (PolicyConfig_CheckPluginConfig_Name_builder) Build ¶
func (b0 PolicyConfig_CheckPluginConfig_Name_builder) Build() *PolicyConfig_CheckPluginConfig_Name
type PolicyConfig_CheckPluginConfig_builder ¶
type PolicyConfig_CheckPluginConfig_builder struct {
// The Plugin name.
Name *PolicyConfig_CheckPluginConfig_Name
// The Options for the Plugin.
Options []*v1.Option
// The arguments to invoke the Plugin with.
Args []string
// contains filtered or unexported fields
}
func (PolicyConfig_CheckPluginConfig_builder) Build ¶
func (b0 PolicyConfig_CheckPluginConfig_builder) Build() *PolicyConfig_CheckPluginConfig
type PolicyConfig_LintConfig ¶
type PolicyConfig_LintConfig struct {
// The list of check rules and/or categories used for the Policy.
Use []string `protobuf:"bytes,1,rep,name=use,proto3" json:"use,omitempty"`
// The list of check rules and/or categories to exclude for the Policy.
Except []string `protobuf:"bytes,2,rep,name=except,proto3" json:"except,omitempty"`
// The suffix that controls the behavior of the ENUM_ZERO_VALUE_SUFFIX lint rule. By default,
// this rule verifies that the zero value of all enums ends in `_UNSPECIFIED`, however, this
// allows organizations to choose a different suffix.
EnumZeroValueSuffix string `protobuf:"bytes,3,opt,name=enum_zero_value_suffix,json=enumZeroValueSuffix,proto3" json:"enum_zero_value_suffix,omitempty"`
// The bool allows the same message type to be used for a single RPC's request and response type.
RpcAllowSameRequestResponse bool `` /* 149-byte string literal not displayed */
// The bool allows RPC requests to be google.protobuf.Empty messages.
RpcAllowGoogleProtobufEmptyRequests bool `` /* 175-byte string literal not displayed */
// The bool allows RPC responses to be google.protobuf.Empty messages.
RpcAllowGoogleProtobufEmptyResponses bool `` /* 178-byte string literal not displayed */
// The suffix controls the behavior of the SERVICE_SUFFIX lint rule. By default, this rule
// verifies that all service names are suffixed with `Service`, however this allows organizations
// to choose a different suffix.
ServiceSuffix string `protobuf:"bytes,7,opt,name=service_suffix,json=serviceSuffix,proto3" json:"service_suffix,omitempty"`
// The bool disables the builtin rules and categories.
DisableBuiltin bool `protobuf:"varint,8,opt,name=disable_builtin,json=disableBuiltin,proto3" json:"disable_builtin,omitempty"`
// contains filtered or unexported fields
}
A lint config consists of the generic check config and additional lint-specifc configs required for running lint.
func (*PolicyConfig_LintConfig) GetDisableBuiltin ¶
func (x *PolicyConfig_LintConfig) GetDisableBuiltin() bool
func (*PolicyConfig_LintConfig) GetEnumZeroValueSuffix ¶
func (x *PolicyConfig_LintConfig) GetEnumZeroValueSuffix() string
func (*PolicyConfig_LintConfig) GetExcept ¶
func (x *PolicyConfig_LintConfig) GetExcept() []string
func (*PolicyConfig_LintConfig) GetRpcAllowGoogleProtobufEmptyRequests ¶
func (x *PolicyConfig_LintConfig) GetRpcAllowGoogleProtobufEmptyRequests() bool
func (*PolicyConfig_LintConfig) GetRpcAllowGoogleProtobufEmptyResponses ¶
func (x *PolicyConfig_LintConfig) GetRpcAllowGoogleProtobufEmptyResponses() bool
func (*PolicyConfig_LintConfig) GetRpcAllowSameRequestResponse ¶
func (x *PolicyConfig_LintConfig) GetRpcAllowSameRequestResponse() bool
func (*PolicyConfig_LintConfig) GetServiceSuffix ¶
func (x *PolicyConfig_LintConfig) GetServiceSuffix() string
func (*PolicyConfig_LintConfig) GetUse ¶
func (x *PolicyConfig_LintConfig) GetUse() []string
func (*PolicyConfig_LintConfig) ProtoMessage ¶
func (*PolicyConfig_LintConfig) ProtoMessage()
func (*PolicyConfig_LintConfig) ProtoReflect ¶
func (x *PolicyConfig_LintConfig) ProtoReflect() protoreflect.Message
func (*PolicyConfig_LintConfig) Reset ¶
func (x *PolicyConfig_LintConfig) Reset()
func (*PolicyConfig_LintConfig) SetDisableBuiltin ¶
func (x *PolicyConfig_LintConfig) SetDisableBuiltin(v bool)
func (*PolicyConfig_LintConfig) SetEnumZeroValueSuffix ¶
func (x *PolicyConfig_LintConfig) SetEnumZeroValueSuffix(v string)
func (*PolicyConfig_LintConfig) SetExcept ¶
func (x *PolicyConfig_LintConfig) SetExcept(v []string)
func (*PolicyConfig_LintConfig) SetRpcAllowGoogleProtobufEmptyRequests ¶
func (x *PolicyConfig_LintConfig) SetRpcAllowGoogleProtobufEmptyRequests(v bool)
func (*PolicyConfig_LintConfig) SetRpcAllowGoogleProtobufEmptyResponses ¶
func (x *PolicyConfig_LintConfig) SetRpcAllowGoogleProtobufEmptyResponses(v bool)
func (*PolicyConfig_LintConfig) SetRpcAllowSameRequestResponse ¶
func (x *PolicyConfig_LintConfig) SetRpcAllowSameRequestResponse(v bool)
func (*PolicyConfig_LintConfig) SetServiceSuffix ¶
func (x *PolicyConfig_LintConfig) SetServiceSuffix(v string)
func (*PolicyConfig_LintConfig) SetUse ¶
func (x *PolicyConfig_LintConfig) SetUse(v []string)
func (*PolicyConfig_LintConfig) String ¶
func (x *PolicyConfig_LintConfig) String() string
type PolicyConfig_LintConfig_builder ¶
type PolicyConfig_LintConfig_builder struct {
// The list of check rules and/or categories used for the Policy.
Use []string
// The list of check rules and/or categories to exclude for the Policy.
Except []string
// The suffix that controls the behavior of the ENUM_ZERO_VALUE_SUFFIX lint rule. By default,
// this rule verifies that the zero value of all enums ends in `_UNSPECIFIED`, however, this
// allows organizations to choose a different suffix.
EnumZeroValueSuffix string
// The bool allows the same message type to be used for a single RPC's request and response type.
RpcAllowSameRequestResponse bool
// The bool allows RPC requests to be google.protobuf.Empty messages.
RpcAllowGoogleProtobufEmptyRequests bool
// The bool allows RPC responses to be google.protobuf.Empty messages.
RpcAllowGoogleProtobufEmptyResponses bool
// The suffix controls the behavior of the SERVICE_SUFFIX lint rule. By default, this rule
// verifies that all service names are suffixed with `Service`, however this allows organizations
// to choose a different suffix.
ServiceSuffix string
// The bool disables the builtin rules and categories.
DisableBuiltin bool
// contains filtered or unexported fields
}
func (PolicyConfig_LintConfig_builder) Build ¶
func (b0 PolicyConfig_LintConfig_builder) Build() *PolicyConfig_LintConfig
type PolicyConfig_builder ¶
type PolicyConfig_builder struct {
// The lint config.
Lint *PolicyConfig_LintConfig
// The breaking config.
Breaking *PolicyConfig_BreakingConfig
// The check plugin configs.
Plugins []*PolicyConfig_CheckPluginConfig
// contains filtered or unexported fields
}
func (PolicyConfig_builder) Build ¶
func (b0 PolicyConfig_builder) Build() *PolicyConfig
type PolicyRef ¶
type PolicyRef struct {
// Types that are valid to be assigned to Value:
//
// *PolicyRef_Id
// *PolicyRef_Name_
Value isPolicyRef_Value `protobuf_oneof:"value"`
// contains filtered or unexported fields
}
PolicyRef is a reference to a Policy, either an id or a fully-qualified name.
This is used in requests.
func (*PolicyRef) GetName ¶
func (x *PolicyRef) GetName() *PolicyRef_Name
func (*PolicyRef) ProtoReflect ¶
func (x *PolicyRef) ProtoReflect() protoreflect.Message
func (*PolicyRef) SetName ¶
func (x *PolicyRef) SetName(v *PolicyRef_Name)
type PolicyRef_Id ¶
type PolicyRef_Id struct {
// The id of the Policy.
Id string `protobuf:"bytes,1,opt,name=id,proto3,oneof"`
}
type PolicyRef_Name ¶
type PolicyRef_Name struct {
// The name of the owner of the Policy. The owner is always an Organization.
Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"`
// The name of the Policy.
Policy string `protobuf:"bytes,2,opt,name=policy,proto3" json:"policy,omitempty"`
// contains filtered or unexported fields
}
The fully-qualified name of a Policy within a BSR intance.
A Name uniquely identifies a Policy. This is used for requests when a caller only has the policy name and not the ID.
func (*PolicyRef_Name) GetOwner ¶
func (x *PolicyRef_Name) GetOwner() string
func (*PolicyRef_Name) GetPolicy ¶
func (x *PolicyRef_Name) GetPolicy() string
func (*PolicyRef_Name) ProtoMessage ¶
func (*PolicyRef_Name) ProtoMessage()
func (*PolicyRef_Name) ProtoReflect ¶
func (x *PolicyRef_Name) ProtoReflect() protoreflect.Message
func (*PolicyRef_Name) Reset ¶
func (x *PolicyRef_Name) Reset()
func (*PolicyRef_Name) SetOwner ¶
func (x *PolicyRef_Name) SetOwner(v string)
func (*PolicyRef_Name) SetPolicy ¶
func (x *PolicyRef_Name) SetPolicy(v string)
func (*PolicyRef_Name) String ¶
func (x *PolicyRef_Name) String() string
type PolicyRef_Name_ ¶
type PolicyRef_Name_ struct {
// The full-qualified name of the Policy.
Name *PolicyRef_Name `protobuf:"bytes,2,opt,name=name,proto3,oneof"`
}
type PolicyRef_Name_builder ¶
type PolicyRef_Name_builder struct {
// The name of the owner of the Policy. The owner is always an Organization.
Owner string
// The name of the Policy.
Policy string
// contains filtered or unexported fields
}
func (PolicyRef_Name_builder) Build ¶
func (b0 PolicyRef_Name_builder) Build() *PolicyRef_Name
type PolicyRef_builder ¶
type PolicyRef_builder struct {
// Fields of oneof Value:
// The id of the Policy.
Id *string
// The full-qualified name of the Policy.
Name *PolicyRef_Name
// contains filtered or unexported fields
}
func (PolicyRef_builder) Build ¶
func (b0 PolicyRef_builder) Build() *PolicyRef
type PolicyState ¶
type PolicyState int32
The state of a Policy, currently either active or deprecated.
const ( PolicyState_POLICY_STATE_UNSPECIFIED PolicyState = 0 // POLICY_STATE_ACTIVE says that the Policy is currently active. PolicyState_POLICY_STATE_ACTIVE PolicyState = 1 // POLICY_STATE_DEPRECATED says that the Policy has been deprecated and should not longer be // used. PolicyState_POLICY_STATE_DEPRECATED PolicyState = 2 )
func (PolicyState) Descriptor ¶
func (PolicyState) Descriptor() protoreflect.EnumDescriptor
func (PolicyState) Enum ¶
func (x PolicyState) Enum() *PolicyState
func (PolicyState) Number ¶
func (x PolicyState) Number() protoreflect.EnumNumber
func (PolicyState) String ¶
func (x PolicyState) String() string
func (PolicyState) Type ¶
func (PolicyState) Type() protoreflect.EnumType
type PolicyVisibility ¶
type PolicyVisibility int32
The visibility of a Policy, currently either public or private.
const ( PolicyVisibility_POLICY_VISIBILITY_UNSPECIFIED PolicyVisibility = 0 // POLICY_VISIBILITY_PUBLIC says that the Policy is publicly available. PolicyVisibility_POLICY_VISIBILITY_PUBLIC PolicyVisibility = 1 // POLICY_VISIBILITY_PRIVATE says that the Policy is private. PolicyVisibility_POLICY_VISIBILITY_PRIVATE PolicyVisibility = 2 )
func (PolicyVisibility) Descriptor ¶
func (PolicyVisibility) Descriptor() protoreflect.EnumDescriptor
func (PolicyVisibility) Enum ¶
func (x PolicyVisibility) Enum() *PolicyVisibility
func (PolicyVisibility) Number ¶
func (x PolicyVisibility) Number() protoreflect.EnumNumber
func (PolicyVisibility) String ¶
func (x PolicyVisibility) String() string
func (PolicyVisibility) Type ¶
func (PolicyVisibility) Type() protoreflect.EnumType
type Policy_builder ¶
type Policy_builder struct {
// The id of the Policy.
Id string
// The time the Policy was created in the BSR.
CreateTime *timestamppb.Timestamp
// The last time the Policy was updated on the BSR.
UpdateTime *timestamppb.Timestamp
// The name of the Policy.
//
// Unique within a given Organization.
Name string
// The id of the Organization that owns the Policy.
OwnerId string
// The Policy's visibility, either public or private.
Visibility PolicyVisibility
// The Policy state, either active or deprecated.
State PolicyState
// The configurable description of the Policy.
Description string
// contains filtered or unexported fields
}
func (Policy_builder) Build ¶
func (b0 Policy_builder) Build() *Policy
type Resource ¶
type Resource struct {
// Types that are valid to be assigned to Value:
//
// *Resource_Policy
// *Resource_Label
// *Resource_Commit
Value isResource_Value `protobuf_oneof:"value"`
// contains filtered or unexported fields
}
A Policy, Label, or Commit.
func (*Resource) ProtoReflect ¶
func (x *Resource) ProtoReflect() protoreflect.Message
type ResourceRef ¶
type ResourceRef struct {
// Types that are valid to be assigned to Value:
//
// *ResourceRef_Id
// *ResourceRef_Name_
Value isResourceRef_Value `protobuf_oneof:"value"`
// contains filtered or unexported fields
}
A reference to any of:
- Policy
- Label
- Commit
The id or name is resolved to a specific resource. If an id is passed, this is interpreted as being the id of the resource. If a name is passed, the semantics according to ResourceRef.Name are applied.
ResourceRefs can only be used in requests, and only for read-only RPCs, that is you should not use an arbitrary reference when modifying a specific resource.
func (*ResourceRef) ClearId ¶
func (x *ResourceRef) ClearId()
func (*ResourceRef) ClearName ¶
func (x *ResourceRef) ClearName()
func (*ResourceRef) ClearValue ¶
func (x *ResourceRef) ClearValue()
func (*ResourceRef) GetId ¶
func (x *ResourceRef) GetId() string
func (*ResourceRef) GetName ¶
func (x *ResourceRef) GetName() *ResourceRef_Name
func (*ResourceRef) GetValue ¶
func (x *ResourceRef) GetValue() isResourceRef_Value
func (*ResourceRef) HasId ¶
func (x *ResourceRef) HasId() bool
func (*ResourceRef) HasName ¶
func (x *ResourceRef) HasName() bool
func (*ResourceRef) HasValue ¶
func (x *ResourceRef) HasValue() bool
func (*ResourceRef) ProtoMessage ¶
func (*ResourceRef) ProtoMessage()
func (*ResourceRef) ProtoReflect ¶
func (x *ResourceRef) ProtoReflect() protoreflect.Message
func (*ResourceRef) Reset ¶
func (x *ResourceRef) Reset()
func (*ResourceRef) SetId ¶
func (x *ResourceRef) SetId(v string)
func (*ResourceRef) SetName ¶
func (x *ResourceRef) SetName(v *ResourceRef_Name)
func (*ResourceRef) String ¶
func (x *ResourceRef) String() string
func (*ResourceRef) WhichValue ¶
func (x *ResourceRef) WhichValue() case_ResourceRef_Value
type ResourceRef_Id ¶
type ResourceRef_Id struct {
// The id of the resource.
Id string `protobuf:"bytes,1,opt,name=id,proto3,oneof"`
}
type ResourceRef_Name ¶
type ResourceRef_Name struct {
// The name of the Organization that owns the resource.
Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"`
// The name of the Policy that contains or is the resource.
Policy string `protobuf:"bytes,2,opt,name=policy,proto3" json:"policy,omitempty"`
// If the oneof is present but empty, this should be treated as not present.
//
// Types that are valid to be assigned to Child:
//
// *ResourceRef_Name_LabelName
// *ResourceRef_Name_Ref
Child isResourceRef_Name_Child `protobuf_oneof:"child"`
// contains filtered or unexported fields
}
The fully-qualified name component of ResourceRef.
The following semantics are applied:
- If the child oneof is not specified, the name is interpreted to reference a Policy.
- If label_name is specified, the name is interpreted to reference a Label.
- If ref is specified, it is interpreted to be either an id or name.
- If an id, this is equivalent to setting the id field on ResourceRef. However, backends can choose to validate that the owner and policy fields match the resource referenced, as additional validation.
- If a name, this is interpreted to be a Label name.
- If there is a conflict between names across resources (for example, there is a Commit id and Label name of the same value), the following order of precedence is applied:
- Commit
- Label
Names can only be used in requests, and only for read-only RPCs, that is you should not use an arbitrary reference when modifying a specific resource.
func (*ResourceRef_Name) ClearChild ¶
func (x *ResourceRef_Name) ClearChild()
func (*ResourceRef_Name) ClearLabelName ¶
func (x *ResourceRef_Name) ClearLabelName()
func (*ResourceRef_Name) ClearRef ¶
func (x *ResourceRef_Name) ClearRef()
func (*ResourceRef_Name) GetChild ¶
func (x *ResourceRef_Name) GetChild() isResourceRef_Name_Child
func (*ResourceRef_Name) GetLabelName ¶
func (x *ResourceRef_Name) GetLabelName() string
func (*ResourceRef_Name) GetOwner ¶
func (x *ResourceRef_Name) GetOwner() string
func (*ResourceRef_Name) GetPolicy ¶
func (x *ResourceRef_Name) GetPolicy() string
func (*ResourceRef_Name) GetRef ¶
func (x *ResourceRef_Name) GetRef() string
func (*ResourceRef_Name) HasChild ¶
func (x *ResourceRef_Name) HasChild() bool
func (*ResourceRef_Name) HasLabelName ¶
func (x *ResourceRef_Name) HasLabelName() bool
func (*ResourceRef_Name) HasRef ¶
func (x *ResourceRef_Name) HasRef() bool
func (*ResourceRef_Name) ProtoMessage ¶
func (*ResourceRef_Name) ProtoMessage()
func (*ResourceRef_Name) ProtoReflect ¶
func (x *ResourceRef_Name) ProtoReflect() protoreflect.Message
func (*ResourceRef_Name) Reset ¶
func (x *ResourceRef_Name) Reset()
func (*ResourceRef_Name) SetLabelName ¶
func (x *ResourceRef_Name) SetLabelName(v string)
func (*ResourceRef_Name) SetOwner ¶
func (x *ResourceRef_Name) SetOwner(v string)
func (*ResourceRef_Name) SetPolicy ¶
func (x *ResourceRef_Name) SetPolicy(v string)
func (*ResourceRef_Name) SetRef ¶
func (x *ResourceRef_Name) SetRef(v string)
func (*ResourceRef_Name) String ¶
func (x *ResourceRef_Name) String() string
func (*ResourceRef_Name) WhichChild ¶
func (x *ResourceRef_Name) WhichChild() case_ResourceRef_Name_Child
type ResourceRef_Name_ ¶
type ResourceRef_Name_ struct {
// The fully-qualified name of the resource.
Name *ResourceRef_Name `protobuf:"bytes,2,opt,name=name,proto3,oneof"`
}
type ResourceRef_Name_LabelName ¶
type ResourceRef_Name_LabelName struct {
// The name of the Label.
//
// If this value is present but empty, this should be treated as not present, that is an empty
// value is the same as a null value.
LabelName string `protobuf:"bytes,3,opt,name=label_name,json=labelName,proto3,oneof"`
}
type ResourceRef_Name_Ref ¶
type ResourceRef_Name_Ref struct {
// The untyped reference, applying the semantics as documented on the Name message.
//
// If this value is present but empty, this should be treated as not present, that is an empty
// value is the same as a null value.
Ref string `protobuf:"bytes,4,opt,name=ref,proto3,oneof"`
}
type ResourceRef_Name_builder ¶
type ResourceRef_Name_builder struct {
// The name of the Organization that owns the resource.
Owner string
// The name of the Policy that contains or is the resource.
Policy string
// Fields of oneof Child:
// The name of the Label.
//
// If this value is present but empty, this should be treated as not present, that is an empty
// value is the same as a null value.
LabelName *string
// The untyped reference, applying the semantics as documented on the Name message.
//
// If this value is present but empty, this should be treated as not present, that is an empty
// value is the same as a null value.
Ref *string
// contains filtered or unexported fields
}
func (ResourceRef_Name_builder) Build ¶
func (b0 ResourceRef_Name_builder) Build() *ResourceRef_Name
type ResourceRef_builder ¶
type ResourceRef_builder struct {
// Fields of oneof Value:
// The id of the resource.
Id *string
// The fully-qualified name of the resource.
Name *ResourceRef_Name
// contains filtered or unexported fields
}
func (ResourceRef_builder) Build ¶
func (b0 ResourceRef_builder) Build() *ResourceRef
type Resource_Commit ¶
type Resource_Commit struct {
Commit *Commit `protobuf:"bytes,3,opt,name=commit,proto3,oneof"`
}
type Resource_Label ¶
type Resource_Label struct {
Label *Label `protobuf:"bytes,2,opt,name=label,proto3,oneof"`
}
type Resource_Policy ¶
type Resource_Policy struct {
Policy *Policy `protobuf:"bytes,1,opt,name=policy,proto3,oneof"`
}
type Resource_builder ¶
type Resource_builder struct {
// Fields of oneof Value:
Policy *Policy
Label *Label
Commit *Commit
// contains filtered or unexported fields
}
func (Resource_builder) Build ¶
func (b0 Resource_builder) Build() *Resource
type ScopedLabelRef ¶
type ScopedLabelRef struct {
// Types that are valid to be assigned to Value:
//
// *ScopedLabelRef_Id
// *ScopedLabelRef_Name
Value isScopedLabelRef_Value `protobuf_oneof:"value"`
// contains filtered or unexported fields
}
A reference to a Label scoped to a Policy, either an id or a name.
This is used in requests.
func (*ScopedLabelRef) ClearId ¶
func (x *ScopedLabelRef) ClearId()
func (*ScopedLabelRef) ClearName ¶
func (x *ScopedLabelRef) ClearName()
func (*ScopedLabelRef) ClearValue ¶
func (x *ScopedLabelRef) ClearValue()
func (*ScopedLabelRef) GetId ¶
func (x *ScopedLabelRef) GetId() string
func (*ScopedLabelRef) GetName ¶
func (x *ScopedLabelRef) GetName() string
func (*ScopedLabelRef) GetValue ¶
func (x *ScopedLabelRef) GetValue() isScopedLabelRef_Value
func (*ScopedLabelRef) HasId ¶
func (x *ScopedLabelRef) HasId() bool
func (*ScopedLabelRef) HasName ¶
func (x *ScopedLabelRef) HasName() bool
func (*ScopedLabelRef) HasValue ¶
func (x *ScopedLabelRef) HasValue() bool
func (*ScopedLabelRef) ProtoMessage ¶
func (*ScopedLabelRef) ProtoMessage()
func (*ScopedLabelRef) ProtoReflect ¶
func (x *ScopedLabelRef) ProtoReflect() protoreflect.Message
func (*ScopedLabelRef) Reset ¶
func (x *ScopedLabelRef) Reset()
func (*ScopedLabelRef) SetId ¶
func (x *ScopedLabelRef) SetId(v string)
func (*ScopedLabelRef) SetName ¶
func (x *ScopedLabelRef) SetName(v string)
func (*ScopedLabelRef) String ¶
func (x *ScopedLabelRef) String() string
func (*ScopedLabelRef) WhichValue ¶
func (x *ScopedLabelRef) WhichValue() case_ScopedLabelRef_Value
type ScopedLabelRef_Id ¶
type ScopedLabelRef_Id struct {
// The id of the Label.
Id string `protobuf:"bytes,1,opt,name=id,proto3,oneof"`
}
type ScopedLabelRef_Name ¶
type ScopedLabelRef_Name struct {
// The name of the Label.
Name string `protobuf:"bytes,2,opt,name=name,proto3,oneof"`
}
type ScopedLabelRef_builder ¶
type ScopedLabelRef_builder struct {
// Fields of oneof Value:
// The id of the Label.
Id *string
// The name of the Label.
Name *string
// contains filtered or unexported fields
}
func (ScopedLabelRef_builder) Build ¶
func (b0 ScopedLabelRef_builder) Build() *ScopedLabelRef
type UnarchiveLabelsRequest ¶
type UnarchiveLabelsRequest struct {
// The Labels to unarchive.
LabelRefs []*LabelRef `protobuf:"bytes,1,rep,name=label_refs,json=labelRefs,proto3" json:"label_refs,omitempty"`
// contains filtered or unexported fields
}
func (*UnarchiveLabelsRequest) GetLabelRefs ¶
func (x *UnarchiveLabelsRequest) GetLabelRefs() []*LabelRef
func (*UnarchiveLabelsRequest) ProtoMessage ¶
func (*UnarchiveLabelsRequest) ProtoMessage()
func (*UnarchiveLabelsRequest) ProtoReflect ¶
func (x *UnarchiveLabelsRequest) ProtoReflect() protoreflect.Message
func (*UnarchiveLabelsRequest) Reset ¶
func (x *UnarchiveLabelsRequest) Reset()
func (*UnarchiveLabelsRequest) SetLabelRefs ¶
func (x *UnarchiveLabelsRequest) SetLabelRefs(v []*LabelRef)
func (*UnarchiveLabelsRequest) String ¶
func (x *UnarchiveLabelsRequest) String() string
type UnarchiveLabelsRequest_builder ¶
type UnarchiveLabelsRequest_builder struct {
// The Labels to unarchive.
LabelRefs []*LabelRef
// contains filtered or unexported fields
}
func (UnarchiveLabelsRequest_builder) Build ¶
func (b0 UnarchiveLabelsRequest_builder) Build() *UnarchiveLabelsRequest
type UnarchiveLabelsResponse ¶
type UnarchiveLabelsResponse struct {
// contains filtered or unexported fields
}
func (*UnarchiveLabelsResponse) ProtoMessage ¶
func (*UnarchiveLabelsResponse) ProtoMessage()
func (*UnarchiveLabelsResponse) ProtoReflect ¶
func (x *UnarchiveLabelsResponse) ProtoReflect() protoreflect.Message
func (*UnarchiveLabelsResponse) Reset ¶
func (x *UnarchiveLabelsResponse) Reset()
func (*UnarchiveLabelsResponse) String ¶
func (x *UnarchiveLabelsResponse) String() string
type UnarchiveLabelsResponse_builder ¶
type UnarchiveLabelsResponse_builder struct {
// contains filtered or unexported fields
}
func (UnarchiveLabelsResponse_builder) Build ¶
func (b0 UnarchiveLabelsResponse_builder) Build() *UnarchiveLabelsResponse
type UpdatePoliciesRequest ¶
type UpdatePoliciesRequest struct {
// The Policies to update.
Values []*UpdatePoliciesRequest_Value `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"`
// contains filtered or unexported fields
}
func (*UpdatePoliciesRequest) GetValues ¶
func (x *UpdatePoliciesRequest) GetValues() []*UpdatePoliciesRequest_Value
func (*UpdatePoliciesRequest) ProtoMessage ¶
func (*UpdatePoliciesRequest) ProtoMessage()
func (*UpdatePoliciesRequest) ProtoReflect ¶
func (x *UpdatePoliciesRequest) ProtoReflect() protoreflect.Message
func (*UpdatePoliciesRequest) Reset ¶
func (x *UpdatePoliciesRequest) Reset()
func (*UpdatePoliciesRequest) SetValues ¶
func (x *UpdatePoliciesRequest) SetValues(v []*UpdatePoliciesRequest_Value)
func (*UpdatePoliciesRequest) String ¶
func (x *UpdatePoliciesRequest) String() string
type UpdatePoliciesRequest_Value ¶
type UpdatePoliciesRequest_Value struct {
// The Policy to update.
PolicyRef *PolicyRef `protobuf:"bytes,1,opt,name=policy_ref,json=policyRef,proto3" json:"policy_ref,omitempty"`
// The Policy's visibility.
Visibility *PolicyVisibility `` /* 130-byte string literal not displayed */
// The deprecation status of the Policy.
State *PolicyState `protobuf:"varint,4,opt,name=state,proto3,enum=buf.registry.policy.v1beta1.PolicyState,oneof" json:"state,omitempty"`
// The configurable description of the Policy.
Description *string `protobuf:"bytes,5,opt,name=description,proto3,oneof" json:"description,omitempty"`
// contains filtered or unexported fields
}
An individual request to update a Policy.
func (*UpdatePoliciesRequest_Value) ClearDescription ¶
func (x *UpdatePoliciesRequest_Value) ClearDescription()
func (*UpdatePoliciesRequest_Value) ClearPolicyRef ¶
func (x *UpdatePoliciesRequest_Value) ClearPolicyRef()
func (*UpdatePoliciesRequest_Value) ClearState ¶
func (x *UpdatePoliciesRequest_Value) ClearState()
func (*UpdatePoliciesRequest_Value) ClearVisibility ¶
func (x *UpdatePoliciesRequest_Value) ClearVisibility()
func (*UpdatePoliciesRequest_Value) GetDescription ¶
func (x *UpdatePoliciesRequest_Value) GetDescription() string
func (*UpdatePoliciesRequest_Value) GetPolicyRef ¶
func (x *UpdatePoliciesRequest_Value) GetPolicyRef() *PolicyRef
func (*UpdatePoliciesRequest_Value) GetState ¶
func (x *UpdatePoliciesRequest_Value) GetState() PolicyState
func (*UpdatePoliciesRequest_Value) GetVisibility ¶
func (x *UpdatePoliciesRequest_Value) GetVisibility() PolicyVisibility
func (*UpdatePoliciesRequest_Value) HasDescription ¶
func (x *UpdatePoliciesRequest_Value) HasDescription() bool
func (*UpdatePoliciesRequest_Value) HasPolicyRef ¶
func (x *UpdatePoliciesRequest_Value) HasPolicyRef() bool
func (*UpdatePoliciesRequest_Value) HasState ¶
func (x *UpdatePoliciesRequest_Value) HasState() bool
func (*UpdatePoliciesRequest_Value) HasVisibility ¶
func (x *UpdatePoliciesRequest_Value) HasVisibility() bool
func (*UpdatePoliciesRequest_Value) ProtoMessage ¶
func (*UpdatePoliciesRequest_Value) ProtoMessage()
func (*UpdatePoliciesRequest_Value) ProtoReflect ¶
func (x *UpdatePoliciesRequest_Value) ProtoReflect() protoreflect.Message
func (*UpdatePoliciesRequest_Value) Reset ¶
func (x *UpdatePoliciesRequest_Value) Reset()
func (*UpdatePoliciesRequest_Value) SetDescription ¶
func (x *UpdatePoliciesRequest_Value) SetDescription(v string)
func (*UpdatePoliciesRequest_Value) SetPolicyRef ¶
func (x *UpdatePoliciesRequest_Value) SetPolicyRef(v *PolicyRef)
func (*UpdatePoliciesRequest_Value) SetState ¶
func (x *UpdatePoliciesRequest_Value) SetState(v PolicyState)
func (*UpdatePoliciesRequest_Value) SetVisibility ¶
func (x *UpdatePoliciesRequest_Value) SetVisibility(v PolicyVisibility)
func (*UpdatePoliciesRequest_Value) String ¶
func (x *UpdatePoliciesRequest_Value) String() string
type UpdatePoliciesRequest_Value_builder ¶
type UpdatePoliciesRequest_Value_builder struct {
// The Policy to update.
PolicyRef *PolicyRef
// The Policy's visibility.
Visibility *PolicyVisibility
// The deprecation status of the Policy.
State *PolicyState
// The configurable description of the Policy.
Description *string
// contains filtered or unexported fields
}
func (UpdatePoliciesRequest_Value_builder) Build ¶
func (b0 UpdatePoliciesRequest_Value_builder) Build() *UpdatePoliciesRequest_Value
type UpdatePoliciesRequest_builder ¶
type UpdatePoliciesRequest_builder struct {
// The Policies to update.
Values []*UpdatePoliciesRequest_Value
// contains filtered or unexported fields
}
func (UpdatePoliciesRequest_builder) Build ¶
func (b0 UpdatePoliciesRequest_builder) Build() *UpdatePoliciesRequest
type UpdatePoliciesResponse ¶
type UpdatePoliciesResponse struct {
// The updated Policies in the same order as given in the request.
Policies []*Policy `protobuf:"bytes,1,rep,name=policies,proto3" json:"policies,omitempty"`
// contains filtered or unexported fields
}
func (*UpdatePoliciesResponse) GetPolicies ¶
func (x *UpdatePoliciesResponse) GetPolicies() []*Policy
func (*UpdatePoliciesResponse) ProtoMessage ¶
func (*UpdatePoliciesResponse) ProtoMessage()
func (*UpdatePoliciesResponse) ProtoReflect ¶
func (x *UpdatePoliciesResponse) ProtoReflect() protoreflect.Message
func (*UpdatePoliciesResponse) Reset ¶
func (x *UpdatePoliciesResponse) Reset()
func (*UpdatePoliciesResponse) SetPolicies ¶
func (x *UpdatePoliciesResponse) SetPolicies(v []*Policy)
func (*UpdatePoliciesResponse) String ¶
func (x *UpdatePoliciesResponse) String() string
type UpdatePoliciesResponse_builder ¶
type UpdatePoliciesResponse_builder struct {
// The updated Policies in the same order as given in the request.
Policies []*Policy
// contains filtered or unexported fields
}
func (UpdatePoliciesResponse_builder) Build ¶
func (b0 UpdatePoliciesResponse_builder) Build() *UpdatePoliciesResponse
type UploadRequest ¶
type UploadRequest struct {
// The Contents of all references.
Contents []*UploadRequest_Content `protobuf:"bytes,1,rep,name=contents,proto3" json:"contents,omitempty"`
// contains filtered or unexported fields
}
func (*UploadRequest) GetContents ¶
func (x *UploadRequest) GetContents() []*UploadRequest_Content
func (*UploadRequest) ProtoMessage ¶
func (*UploadRequest) ProtoMessage()
func (*UploadRequest) ProtoReflect ¶
func (x *UploadRequest) ProtoReflect() protoreflect.Message
func (*UploadRequest) Reset ¶
func (x *UploadRequest) Reset()
func (*UploadRequest) SetContents ¶
func (x *UploadRequest) SetContents(v []*UploadRequest_Content)
func (*UploadRequest) String ¶
func (x *UploadRequest) String() string
type UploadRequest_Content ¶
type UploadRequest_Content struct {
// The Policy of the reference.
PolicyRef *PolicyRef `protobuf:"bytes,1,opt,name=policy_ref,json=policyRef,proto3" json:"policy_ref,omitempty"`
// The Policy config to upload.
Config *PolicyConfig `protobuf:"bytes,2,opt,name=config,proto3" json:"config,omitempty"`
// The labels to associate with the Commit for the Content.
//
// If an id is set, this id must represent a Label that already exists and is owned by the
// Policy. The Label will point to the newly-created Commits for the References, or will be
// updated to point to the pre-existing Commit for the Reference.
//
// If no labels are referenced, the default Label for the Policy is used.
//
// If the Labels do not exist, they will be created. If the Labels were archived, they will be
// unarchived.
ScopedLabelRefs []*ScopedLabelRef `protobuf:"bytes,3,rep,name=scoped_label_refs,json=scopedLabelRefs,proto3" json:"scoped_label_refs,omitempty"`
// contains filtered or unexported fields
}
Content to upload.
func (*UploadRequest_Content) ClearConfig ¶
func (x *UploadRequest_Content) ClearConfig()
func (*UploadRequest_Content) ClearPolicyRef ¶
func (x *UploadRequest_Content) ClearPolicyRef()
func (*UploadRequest_Content) GetConfig ¶
func (x *UploadRequest_Content) GetConfig() *PolicyConfig
func (*UploadRequest_Content) GetPolicyRef ¶
func (x *UploadRequest_Content) GetPolicyRef() *PolicyRef
func (*UploadRequest_Content) GetScopedLabelRefs ¶
func (x *UploadRequest_Content) GetScopedLabelRefs() []*ScopedLabelRef
func (*UploadRequest_Content) HasConfig ¶
func (x *UploadRequest_Content) HasConfig() bool
func (*UploadRequest_Content) HasPolicyRef ¶
func (x *UploadRequest_Content) HasPolicyRef() bool
func (*UploadRequest_Content) ProtoMessage ¶
func (*UploadRequest_Content) ProtoMessage()
func (*UploadRequest_Content) ProtoReflect ¶
func (x *UploadRequest_Content) ProtoReflect() protoreflect.Message
func (*UploadRequest_Content) Reset ¶
func (x *UploadRequest_Content) Reset()
func (*UploadRequest_Content) SetConfig ¶
func (x *UploadRequest_Content) SetConfig(v *PolicyConfig)
func (*UploadRequest_Content) SetPolicyRef ¶
func (x *UploadRequest_Content) SetPolicyRef(v *PolicyRef)
func (*UploadRequest_Content) SetScopedLabelRefs ¶
func (x *UploadRequest_Content) SetScopedLabelRefs(v []*ScopedLabelRef)
func (*UploadRequest_Content) String ¶
func (x *UploadRequest_Content) String() string
type UploadRequest_Content_builder ¶
type UploadRequest_Content_builder struct {
// The Policy of the reference.
PolicyRef *PolicyRef
// The Policy config to upload.
Config *PolicyConfig
// The labels to associate with the Commit for the Content.
//
// If an id is set, this id must represent a Label that already exists and is owned by the
// Policy. The Label will point to the newly-created Commits for the References, or will be
// updated to point to the pre-existing Commit for the Reference.
//
// If no labels are referenced, the default Label for the Policy is used.
//
// If the Labels do not exist, they will be created. If the Labels were archived, they will be
// unarchived.
ScopedLabelRefs []*ScopedLabelRef
// contains filtered or unexported fields
}
func (UploadRequest_Content_builder) Build ¶
func (b0 UploadRequest_Content_builder) Build() *UploadRequest_Content
type UploadRequest_builder ¶
type UploadRequest_builder struct {
// The Contents of all references.
Contents []*UploadRequest_Content
// contains filtered or unexported fields
}
func (UploadRequest_builder) Build ¶
func (b0 UploadRequest_builder) Build() *UploadRequest
type UploadResponse ¶
type UploadResponse struct {
// The Commits for each reference in the same order as given on the request.
//
// A single Commit will be returned for each reference. These Commits may or may not be new.
// If nothing changed for a given reference (e.g. the same file contents as the latest), the
// existing Commit will be returned.
Commits []*Commit `protobuf:"bytes,1,rep,name=commits,proto3" json:"commits,omitempty"`
// contains filtered or unexported fields
}
func (*UploadResponse) GetCommits ¶
func (x *UploadResponse) GetCommits() []*Commit
func (*UploadResponse) ProtoMessage ¶
func (*UploadResponse) ProtoMessage()
func (*UploadResponse) ProtoReflect ¶
func (x *UploadResponse) ProtoReflect() protoreflect.Message
func (*UploadResponse) Reset ¶
func (x *UploadResponse) Reset()
func (*UploadResponse) SetCommits ¶
func (x *UploadResponse) SetCommits(v []*Commit)
func (*UploadResponse) String ¶
func (x *UploadResponse) String() string
type UploadResponse_builder ¶
type UploadResponse_builder struct {
// The Commits for each reference in the same order as given on the request.
//
// A single Commit will be returned for each reference. These Commits may or may not be new.
// If nothing changed for a given reference (e.g. the same file contents as the latest), the
// existing Commit will be returned.
Commits []*Commit
// contains filtered or unexported fields
}
func (UploadResponse_builder) Build ¶
func (b0 UploadResponse_builder) Build() *UploadResponse
Source Files
¶
- commit.pb.go
- commit_service.pb.go
- configuration.pb.go
- digest.pb.go
- download_service.pb.go
- label.pb.go
- label_service.pb.go
- policy.pb.go
- policy_service.pb.go
- resource.pb.go
- resource_service.pb.go
- upload_service.pb.go