Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
StreamChain Prototype
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
zistvan-public
StreamChain Prototype
Commits
da72edde
Commit
da72edde
authored
6 years ago
by
Jason Yellick
Committed by
Gerrit Code Review
6 years ago
Browse files
Options
Downloads
Plain Diff
Merge "[FAB-10938] Remove go file because of deadcode"
parents
1c93fc6e
0a952526
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
common/cauthdsl/policy_util.go
+0
-34
0 additions, 34 deletions
common/cauthdsl/policy_util.go
with
0 additions
and
34 deletions
common/cauthdsl/policy_util.go
deleted
100644 → 0
+
0
−
34
View file @
1c93fc6e
/*
Copyright IBM Corp. 2016 All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
package
cauthdsl
import
(
cb
"github.com/hyperledger/fabric/protos/common"
"github.com/hyperledger/fabric/protos/utils"
)
// TemplatePolicy creates a headerless configuration item representing a policy for a given key
func
TemplatePolicy
(
key
string
,
sigPolicyEnv
*
cb
.
SignaturePolicyEnvelope
)
*
cb
.
ConfigGroup
{
configGroup
:=
cb
.
NewConfigGroup
()
configGroup
.
Policies
[
key
]
=
&
cb
.
ConfigPolicy
{
Policy
:
&
cb
.
Policy
{
Type
:
int32
(
cb
.
Policy_SIGNATURE
),
Value
:
utils
.
MarshalOrPanic
(
sigPolicyEnv
),
},
}
return
configGroup
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment