mirror of
https://github.com/hashicorp/packer.git
synced 2026-03-10 10:20:43 -04:00
This adds the new `required_plugins` block to be nested under the packer block.
Example:
```hcl
packer {
required_plugins {
aws = {
version = ">= 2.7.0"
source = "azr/aws"
}
azure = ">= 2.7.0"
}
}
```
For example on darwin_amd64 Packer will install those under :
* "${PACKER_HOME_DIR}/plugin/github.com/azr/amazon/packer-plugin-amazon_2.7.0_x5.0_darwin_amd64"
* "${PACKER_HOME_DIR}/plugin/github.com/hashicorp/azure/packer-plugin-azure_2.7.0_x5.0_darwin_amd64_x5"
+ docs
+ tests
28 lines
1.2 KiB
Go
28 lines
1.2 KiB
Go
// Copyright 2018 The go-github AUTHORS. All rights reserved.
|
|
//
|
|
// Use of this source code is governed by a BSD-style
|
|
// license that can be found in the LICENSE file.
|
|
|
|
package github
|
|
|
|
// InteractionsService handles communication with the repository and organization related
|
|
// methods of the GitHub API.
|
|
//
|
|
// GitHub API docs: https://docs.github.com/en/free-pro-team@latest/rest/reference/interactions/
|
|
type InteractionsService service
|
|
|
|
// InteractionRestriction represents the interaction restrictions for repository and organization.
|
|
type InteractionRestriction struct {
|
|
// Specifies the group of GitHub users who can
|
|
// comment, open issues, or create pull requests for the given repository.
|
|
// Possible values are: "existing_users", "contributors_only" and "collaborators_only".
|
|
Limit *string `json:"limit,omitempty"`
|
|
|
|
// Origin specifies the type of the resource to interact with.
|
|
// Possible values are: "repository" and "organization".
|
|
Origin *string `json:"origin,omitempty"`
|
|
|
|
// ExpiresAt specifies the time after which the interaction restrictions expire.
|
|
// The default expiry time is 24 hours from the time restriction is created.
|
|
ExpiresAt *Timestamp `json:"expires_at,omitempty"`
|
|
}
|