# ContainerFileSystemCallbackContext

- Module: [Aspire.Hosting](/reference/api/go/aspire.hosting.md)
- Version: `17.0.0`
- Kind: `handle`
- Source: [GitHub](https://github.com/microsoft/aspire/tree/bcfa151cdca6d0a573f22d5d9c23f9c727cb3b2f)

Represents the context for a `ContainerFileSystemCallbackAnnotation` callback.

## Definition

```go
type ContainerFileSystemCallbackContext interface{}
```

## Properties

- `Model`: [`Resource`](/reference/api/go/aspire.hosting/resource.md) `get` -- The app model resource the callback is associated with.
- `Services`: [`ServiceProvider`](/reference/api/go/aspire.hosting/serviceprovider.md) `get` -- A `IServiceProvider` that can be used to resolve services in the callback.

## Methods

- [CreateCertificateFile](/reference/api/go/aspire.hosting/containerfilesystemcallbackcontext/createcertificatefile.md) -- `method` -- Creates a PEM container certificate file entry with the OpenSSL subject-hash symlink.
  ```go
  CreateCertificateFile(name string, options ...*CreateCertificateFileOptions) ContainerFileSystemItem
  ```
- [CreateDirectory](/reference/api/go/aspire.hosting/containerfilesystemcallbackcontext/createdirectory.md) -- `method` -- Creates a container directory entry containing the specified child entries.
  ```go
  CreateDirectory(name string, entries []ContainerFileSystemItem, options ...*CreateDirectoryOptions) ContainerFileSystemItem
  ```
- [CreateFile](/reference/api/go/aspire.hosting/containerfilesystemcallbackcontext/createfile.md) -- `method` -- Creates a container file entry with inline contents or a host source path.
  ```go
  CreateFile(name string, options ...*CreateFileOptions) ContainerFileSystemItem
  ```
