Documentation ¶
Index ¶
- Constants
- Variables
- func NewGcp() resource.Resource
- func NewGcpAccessLogs() resource.Resource
- func NewGcpIamAssessment() resource.Resource
- func NewGcpIamAssessmentStaged() resource.Resource
- func NewGcpIamWrite() resource.Resource
- func NewGcpIamWriteStaged() resource.Resource
- func NewGcpSharingRestriction() resource.Resource
- type Gcp
- func (r *Gcp) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *Gcp) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *Gcp) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *Gcp) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *Gcp) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *Gcp) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *Gcp) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *Gcp) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type GcpAccessLogs
- func (r *GcpAccessLogs) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (s *GcpAccessLogs) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (s *GcpAccessLogs) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (s *GcpAccessLogs) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *GcpAccessLogs) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (s *GcpAccessLogs) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *GcpAccessLogs) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (s *GcpAccessLogs) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type GcpIamAssessment
- func (r *GcpIamAssessment) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (s *GcpIamAssessment) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (s *GcpIamAssessment) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (s *GcpIamAssessment) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *GcpIamAssessment) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (s *GcpIamAssessment) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *GcpIamAssessment) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (s *GcpIamAssessment) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type GcpIamAssessmentStaged
- func (r *GcpIamAssessmentStaged) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (s *GcpIamAssessmentStaged) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (s *GcpIamAssessmentStaged) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (s *GcpIamAssessmentStaged) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *GcpIamAssessmentStaged) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (s *GcpIamAssessmentStaged) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *GcpIamAssessmentStaged) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (s *GcpIamAssessmentStaged) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type GcpIamWrite
- func (r *GcpIamWrite) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (s *GcpIamWrite) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (s *GcpIamWrite) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (s *GcpIamWrite) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *GcpIamWrite) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (s *GcpIamWrite) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *GcpIamWrite) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (s *GcpIamWrite) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type GcpIamWriteStaged
- func (r *GcpIamWriteStaged) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (s *GcpIamWriteStaged) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (s *GcpIamWriteStaged) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (s *GcpIamWriteStaged) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *GcpIamWriteStaged) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (s *GcpIamWriteStaged) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *GcpIamWriteStaged) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (s *GcpIamWriteStaged) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type GcpSharingRestriction
- func (r *GcpSharingRestriction) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (s *GcpSharingRestriction) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (s *GcpSharingRestriction) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (s *GcpSharingRestriction) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *GcpSharingRestriction) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (s *GcpSharingRestriction) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *GcpSharingRestriction) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (s *GcpSharingRestriction) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
Constants ¶
View Source
const ( AccessLogs = "access-logs" GcpKey = "gcloud" SharingRestriction = "sharing-restriction" )
Variables ¶
View Source
var GcpOrganizationIdRegex = regexp.MustCompile(`^[\d]+$`)
View Source
var GcpProjectIdRegex = regexp.MustCompile(`^[\w-]+$`)
Functions ¶
func NewGcpAccessLogs ¶
func NewGcpIamAssessment ¶
func NewGcpIamWrite ¶
func NewGcpIamWriteStaged ¶
Types ¶
type Gcp ¶
type Gcp struct {
// contains filtered or unexported fields
}
func (*Gcp) Configure ¶
func (r *Gcp) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*Gcp) Create ¶
func (r *Gcp) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*Gcp) Delete ¶
func (r *Gcp) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*Gcp) ImportState ¶
func (r *Gcp) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*Gcp) Metadata ¶
func (r *Gcp) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*Gcp) Read ¶
func (r *Gcp) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*Gcp) Schema ¶
func (r *Gcp) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*Gcp) Update ¶
func (r *Gcp) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
type GcpAccessLogs ¶
type GcpAccessLogs struct {
// contains filtered or unexported fields
}
func (*GcpAccessLogs) Configure ¶
func (r *GcpAccessLogs) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*GcpAccessLogs) Create ¶
func (s *GcpAccessLogs) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*GcpAccessLogs) Delete ¶
func (s *GcpAccessLogs) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*GcpAccessLogs) ImportState ¶
func (s *GcpAccessLogs) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*GcpAccessLogs) Metadata ¶
func (r *GcpAccessLogs) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*GcpAccessLogs) Read ¶
func (s *GcpAccessLogs) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*GcpAccessLogs) Schema ¶
func (r *GcpAccessLogs) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*GcpAccessLogs) Update ¶
func (s *GcpAccessLogs) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
type GcpIamAssessment ¶
type GcpIamAssessment struct {
// contains filtered or unexported fields
}
func (*GcpIamAssessment) Configure ¶
func (r *GcpIamAssessment) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*GcpIamAssessment) Create ¶
func (s *GcpIamAssessment) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*GcpIamAssessment) Delete ¶
func (s *GcpIamAssessment) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*GcpIamAssessment) ImportState ¶
func (s *GcpIamAssessment) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*GcpIamAssessment) Metadata ¶
func (r *GcpIamAssessment) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*GcpIamAssessment) Read ¶
func (s *GcpIamAssessment) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*GcpIamAssessment) Schema ¶
func (r *GcpIamAssessment) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*GcpIamAssessment) Update ¶
func (s *GcpIamAssessment) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
type GcpIamAssessmentStaged ¶
type GcpIamAssessmentStaged struct {
// contains filtered or unexported fields
}
func (*GcpIamAssessmentStaged) Configure ¶
func (r *GcpIamAssessmentStaged) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*GcpIamAssessmentStaged) Create ¶
func (s *GcpIamAssessmentStaged) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*GcpIamAssessmentStaged) Delete ¶
func (s *GcpIamAssessmentStaged) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
Skips the unstaging step, as it is not needed for ssh integrations and instead performs a full delete.
func (*GcpIamAssessmentStaged) ImportState ¶
func (s *GcpIamAssessmentStaged) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*GcpIamAssessmentStaged) Metadata ¶
func (r *GcpIamAssessmentStaged) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*GcpIamAssessmentStaged) Read ¶
func (s *GcpIamAssessmentStaged) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*GcpIamAssessmentStaged) Schema ¶
func (r *GcpIamAssessmentStaged) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*GcpIamAssessmentStaged) Update ¶
func (s *GcpIamAssessmentStaged) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
Update implements resource.ResourceWithImportState.
type GcpIamWrite ¶
type GcpIamWrite struct {
// contains filtered or unexported fields
}
func (*GcpIamWrite) Configure ¶
func (r *GcpIamWrite) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*GcpIamWrite) Create ¶
func (s *GcpIamWrite) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*GcpIamWrite) Delete ¶
func (s *GcpIamWrite) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*GcpIamWrite) ImportState ¶
func (s *GcpIamWrite) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*GcpIamWrite) Metadata ¶
func (r *GcpIamWrite) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*GcpIamWrite) Read ¶
func (s *GcpIamWrite) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*GcpIamWrite) Schema ¶
func (r *GcpIamWrite) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*GcpIamWrite) Update ¶
func (s *GcpIamWrite) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
type GcpIamWriteStaged ¶
type GcpIamWriteStaged struct {
// contains filtered or unexported fields
}
func (*GcpIamWriteStaged) Configure ¶
func (r *GcpIamWriteStaged) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*GcpIamWriteStaged) Create ¶
func (s *GcpIamWriteStaged) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*GcpIamWriteStaged) Delete ¶
func (s *GcpIamWriteStaged) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
Skips the unstaging step, as it is not needed for ssh integrations and instead performs a full delete.
func (*GcpIamWriteStaged) ImportState ¶
func (s *GcpIamWriteStaged) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*GcpIamWriteStaged) Metadata ¶
func (r *GcpIamWriteStaged) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*GcpIamWriteStaged) Read ¶
func (s *GcpIamWriteStaged) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*GcpIamWriteStaged) Schema ¶
func (r *GcpIamWriteStaged) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*GcpIamWriteStaged) Update ¶
func (s *GcpIamWriteStaged) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
Update implements resource.ResourceWithImportState.
type GcpSharingRestriction ¶
type GcpSharingRestriction struct {
// contains filtered or unexported fields
}
func (*GcpSharingRestriction) Configure ¶
func (r *GcpSharingRestriction) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*GcpSharingRestriction) Create ¶
func (s *GcpSharingRestriction) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*GcpSharingRestriction) Delete ¶
func (s *GcpSharingRestriction) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*GcpSharingRestriction) ImportState ¶
func (s *GcpSharingRestriction) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*GcpSharingRestriction) Metadata ¶
func (r *GcpSharingRestriction) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*GcpSharingRestriction) Read ¶
func (s *GcpSharingRestriction) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*GcpSharingRestriction) Schema ¶
func (r *GcpSharingRestriction) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*GcpSharingRestriction) Update ¶
func (s *GcpSharingRestriction) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
Click to show internal directories.
Click to hide internal directories.